HH-41451 migrate to dh_python2, run PEP8 tests and fix some PEP8 warnings