lint the whole repo, fix a bug found by pyflakes

`noqa` is not necessary and is better without.