requests has a way to convert the body to json already, so you can drop the import and use `resp.json()`.