jupyter/jupyter-drive — pull request #28 by takluyver (2014-12-10 17:55:00+00:00)
Title: Fix writing JSON file on Python 3

Addresses gh-27; ping @rgbkrk

This is admittedly inelegant, but since the json module on Python 2 can serialise to either bytes or unicode depending on the input, it seems like the most robust way to write json to a file.