import subprocess
with open('tests.txt') as fp:
    for line in fp:
        items = line.split()
        process = subprocess.Popen("""main << TEST
        2 5
        TEST""",
            stdout=subprocess.PIPE)
        output, error = process.communicate()

5459d926579bf7181106b2f121f6e352964b6e00
<mask token>

<mask token>
with open('tests.txt') as fp:
    for line in fp:
        items = line.split()
        process = subprocess.Popen("""main << TEST
        2 5
        TEST""",
            stdout=subprocess.PIPE)
        output, error = process.communicate()

import subprocess
with open('tests.txt') as fp:
    for line in fp:
        items = line.split()
        process = subprocess.Popen("""main << TEST
        2 5
        TEST""",
            stdout=subprocess.PIPE)
        output, error = process.communicate()
