fixed some pep8 errors reported by flake8