Bump pep8, pyflakes and flake8 versions

Since newer versions of each package can either break
hacking(flake8, pep8) or introduce new rules and because we gate on the
output of hacking, we pin these dependencies to specific versions.

* Set pyflakes to the newest version: 0.8.1
* Set flake8 to to the newest version: 2.1.0
* Set pep8 to 1.4.6, since newer version (1.5.1) breaks hacking and will
  require additional work to support it. Will be addressed in a future
  patch.

Fix code to pass new version of pep8.

Change-Id: Ia3495102a9d096c09802b9c079a8dc7ec1f65530
Merge "Bump pep8, pyflakes and flake8 versions"