extend ipython to use doctests