requests returns a different exception type on JSON errors
Important bugfix to handling of text responses on Python 3.
The exception type that is returned for JSON parse errors was incorrect
in our code because the requests module uses the simplejson module
for parsing and we assumed the regular json module.