references to simplejson changed to json (as in api.py)