Add flake8 checks to Travis-CI build
Fix flake8 issues