python -u script.py
import sysprint("Message")sys.stdout.flush()
import sys
print("Message")
sys.stdout.flush()