Added an Ipython notebook to the python implementation of the problem.