pep8 refresh of the heuristics module