import subprocess
proc = subprocess.Popen(['python', 'fake_utility.py'], stdout=subprocess.PIPE)
while True:
    line = proc.stdout.readline()
if line != '':
    print('test:', line.rstrip())
else:
    break
read subprocess stdout line by line