fixed flake8 formatting errors