if line == '':
    break
else:
    print(line)
proc = Popen('python subprocess_test.py', shell=True, stdin=PIPE, stdout=
    PIPE, stderr=PIPE)
How do I get 'real-time' information back from a subprocess.Popen in python (2.5)