Migrate to flake8.

Fixes bug 1172444.

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