def start_ipython():
    from IPython.Shell import IPShellEmbed
shell = IPShellEmbed()
Is it possible to tell a python script to stop at some point and give you the hand interactively, for example with ipython?