fix python 3
Merge pull request #788 from twosigma/ildipo/pythonjson

fix python 3