flake8 style fixes and config