make the ipython support work with newer ipython versions.