Incorporate flake8 into travis ci build process.
Resolve python3 flake8 issues.