The repo is Python 3 now, so update hacking to version 2.0 which supports Python 3. Fix problems found. Update local hacking checks for new flake8. Change-Id: I40bd7e03f39ebb074feb6f7a64bbd398688ddebf