IPython integration and some Python 3 changes.