Fixing json.dumps for django 1.5