Fixed to run on python 2.4.* with simplejson.