starting converting IPython notebook to a .py file