pg_gw_hooks.py