add flake8 setup and fix really bad style
typo in error
Merge pull request #179 from jamescasbon/flake8

Add flake8 setup and fix really bad style