Many additional flake8 syntax fixes

More was found in the py26 branch