writing back the changes for the ipython index file