moved ipython stuff to own script.