Python3 fix, json.loads requires str #299