Fix relative imports for Python 3.
Add support for the latest version of requests.
Fix response parsing under Python 3.