how to convert byte array to json object in python