random cleanups and make flake8 a test we run on every commit