fix for IPython 2.0