Remove unused imports, reenable pyflakes

Reenable pyflakes checks, remove unused imports
which is a fallout from the reenablement.

Change-Id: Icfca59bb19c1121340777b0acdebc3cbf6a94931
Merge "Remove unused imports, reenable pyflakes"