Correct use of noqa

Use of "flake8: noqa" disabled hacking checks for the entire file.
Files should use "noqa" instead because that disables hacking checks
only for the line.

This fixes an inappropriate use of "flake8: noqa" and the hacking
issues that were masked.

Change-Id: I7c5b0b9dc4aab7e2129c0886afda0d07dba09afe
Merge "Correct use of noqa"