Scipy cookbook converted to Ipython