update to hacking 0.8

hacking 0.8 brings us a working H302 rule (should import modules
not objects) and a bunch of python 3 compat rules.

fix the python 3 compat issues to make this landable.

Change-Id: I53abf39394afc54da5ad049802dca0032f14882d
3 files changed