major hacking fixes

This gets us close to hacking compliance. The next CR should fix the
remaining hacking violations and enable hacking on the flake8 gate.

Change-Id: I314b040f2bbced616eb21739fb38ef1da6e997bf
Merge "major hacking fixes"