ipython notebooks don't display right on github, so put code into python scripts