flake8'ed ha.py