call the data.decode method with a string 'latin-1' as an argument, use the result as an argument for the call to the json.load function, return the result.
return json . loads ( data . decode ( 'latin-1' ) )