flake8 compliance modifications