Added integration with flake8 and fixed offending files.