def json_loads(data): # on Python 3.5 json.loads only supports str not bytes return json.loads(data.decode())