ipython: Update to match the latest IPython API
ipython: seek to 0 after truncating stdout

We need this to leave the stdout ready to be used again
ipython: Adding auto-indentation