Update hacking for Python3

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

Fix problems found.

Closes-Issue: PRODX-13225
Change-Id: Ia59a23a36ebb8548a20e894000f7342c73012eac
(cherry picked from commit a318f6d77c0b354b4aee2fe9d7651d595adcf38e)
4 files changed