fix ipython cleaning