Address flake8 warnings on test/test_login.py