#4 - using flake8 before deploying

Also fixed up existing errors.

Fixes #4.