Flake8

Enforce flake8 passes before build, plus some other minor build config stuff.