Made verify_notebook script IPython2 compatible