Fix python3

Fix TypeError in json.loads for x-json content-type