hooks.py

Functions for handling runtime function hooks.