I\'d like to do something like:
do lots of stuff to prepare a good environement become_interactive #wait for Ctrl-D automatically clean up
Is i
You may call python itself:
import subprocess print "Hola" subprocess.call(["python"],shell=True) print "Adios"