versions of requests prior to this throw an error.

example script dies trying to access content.json() as it is not a dict.
minor bit, but may help with folks who try to implement things in stable environments.