Using the IPython Notebook as a Teaching Tool