Last flakes

Remove unused imports, globals, and make __all__ unmutable.

Change-Id: Ifc6f1baf1162855fda18fa0198fcd74515c0d2bc
Merge "Last flakes"