Put the flake8 config in a real config file, also fix some violations
Merge pull request #835 from topazproject/flake8

Put the flake8 config in a real config file, also fix some violations