Pep8

* Convert all Python files to conform to PEP8.
* Remove unused imports and variables.
* Add a code linting test using `flask8`