UI pyflakes

- remove unused variables and imports
- use __all__ to disable one pyflake error

Change-Id: I874ded3e786d4c0a6990846aea6758e9d254ef11