Massive pep8/pyflakes cleanup

The pyflakes and pep8 checks should now run automatically when Travis CI builds run. I've documented which flags are ignored in .travis.yml (e.g. line length checks).
Interesting. This file again is auto-generated. But I wonder if in this case, removing the unused import makes sense.