Tools for ipython