lint the whole repo, fix a bug found by pyflakes