Use flake8 instead of pep8

flake8 is pluggable and supports running hacking checks via a plugin.

Fixes bug 1172444

Change-Id: Ie0b11544aaa3b1602ceced61941ab2cb30a7dc17
Merge "Use flake8 instead of pep8"