introduce 'flake8' as part of the travis build; add comments to ignore lines which would otherwise cause pyflakes warnings