PEP8 and Pylint.

Comply to PEP8 and Pylint conventions.
For added points, exceptions from requests module are now logged.
Merge pull request #3 from daniel-star/pep8-and-pylint

PEP8 and Pylint.