flake8 fixes (unused imports and variables).