Fix whitespace for PEP-8; Fix override method for Hooks class