Fix F402 violations and re-enable gating

F402 got stricter in hacking 0.9, so fix new violations and
re-enable gating.

Change-Id: I81a1b14311ea6dc7f01353aa27d1f18f1aec8e81
Merge "Fix F402 violations and re-enable gating"