human
python, subprocess: reading output from subprocess
assistant
Here is some code to flush output of python print

sys.stdout.flush()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.