pep8 + flake8 + a little bit more pythonic code