Update hacking for Python3

The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I76d42ef91d3cfc133a6f7a4dfdf982e5fec0d443
6 files changed