moved notebook stuff to .py files for running on hafen