flake8 config plus pep8 corrections