#!/usr/bin/python3 # Apparently there is no (working) way to get a non-blocking stdout if we call # the Python interpreter directly with subprocess.Popen. For some reason, this # works. import code code.interact(banner='')