Rough hack of nbconvert.py to support converting IPython notebooks to HTML fragments