Fixed Python 3 compatibility issues.
Change requests to version 2.3.0 (latest).
Removed the need for urllib.
PEP 8.