Fix flake8 warnings and errors
enable flake8 in travis
Merge pull request #4 from guewen/7.0-pep8

Fix flake8 warnings and errors