fixed flake8 errors
flake8 tweaks