Support IPython 3