Updated the version of hacking to match global requirements [1] and
fixed several pep8 issues exposed with the new version.
The list of fixed issues:
- W292 no newline at end of file
- H238 old style class declaration
[1] https://github.com/openstack/requirements/blob/master/global-requirements.txt
Change-Id: I2de0d2ed9d6e0a893290053998877ba30093f636