I have the following code to flushing out the output buffer.
print('return 1') sys.stdout.flush()
Can I set up the print function so that it automatically flushes the buffer when it's called?