fix an issue with json and python2.6