saving state of ipython console