updated Ipython notebook