changes for ipython