add ipython 1.1+ support