Use flake8 and hacking.

Fixes bug 1172444

Change-Id: I46b733bd16fa49c58c642348988233064d2b673b
Merge "Use flake8 and hacking."