flake8 the code a bit