lint the whole repo, fix a bug found by pyflakes

This is not necessary and is better without.