Flake8 clean up on core/templatetags/menu.py.