Hacked and munged version of nbconvert for converting IPython notebook to HTML