Run flake8 checks as part of test suite.
Fix PEP8 complaints.