Allow use of hacking 0.6.0 and enable new checks

There are only several errors after running hacking 0.6.0:

* H501  Do not use locals() for string formatting
* H231  Python 3.x incompatible 'except x,y:' construct

Change-Id: Iacae482fda07507c3e7ce8e6da8dbb7bde699016
Merge "Allow use of hacking 0.6.0 and enable new checks"