Fix various smaller pep8 issues

Change-Id: Icc015418e0e231311ac0a0cc507fa3f8842d8811
Fix all the pep8  E* and F* errors.

Change-Id: I34bab949e4795073544c64c9796237c60ace4d65
Fix all but H302 hacking rules.

Change-Id: Iac329617428b851df42579d5bd0b299d2f6e2c0a