solving compatibility issues for python3 and windows

after a long hunt, I finally got it working, under python3+ windows.

log = json.load(open('ipython-log.json'))
print ("Number of commits = ", len(log));print (log[0])

Number of commits =  11964
{'author': {'date': 1377906000, 'name': 'Brian E. Granger', 'email': 'ellisonbg@gmail.com', 'timezone': '-0700'}, 'tree': 'f36455dce03a8e2e160f276e2ba1a5fff007c82d', 'commit': '9f92804762878b36b81885dccd9f44172b6cb18c', 'committer': {'date': 1377906000, 'name': 'Brian E. Granger', 'email': 'ellisonbg@gmail.com', 'timezone': '-0700'}, 'changes': [], 'message': 'Merge pull request #4090 from ellisonbg/citationAdd LaTeX citation handling to nbconvert', 'parents': ['6eb7d86707a0d35a3eb24c0aeaef0403630a8fa3', '99bb6f007c75a1af524a3bf6dd52ee22a84aa60d']}