IPython Notebook with code used to answer the questions