fix almost all pyflakes violations found in previously unchecked files.