ipython notebook and script