ipython notebook cleanup