script to convert a python source file to ipython notebook format