fix warnings with flake8