Allow use of hook.py in pieces