Refactored some code, added dummy setup.cfg for flake8's git hook