Fixes #1. Most Pylint and Pep8 errors fixed.

Ignore line-too-long and missing-docstring (will fix later).