fixes pep8 warnings
adds pep8 and pyflakes to Travis tests