Fixed PEP-8 formatting recommendations in hooks module

This fixes a series of warnings from the pep8 tool involving line lengths.

Testing Done:
Ran unit tests, and pep8.

Reviewed at https://reviews.reviewboard.org/r/6666/