Migrate to flake8.

Fixes bug 1172444

Change-Id: I68d5e58f6992f7357e3bb4f72ae40d0ebe076d4b
Merge "Migrate to flake8."