Flake8 fixes and clean-ups
Move configuration into its own module