Update hooks.py

changed comments