remove unused variables flagged by flake8