cleanup ipython window