Improve the documentation by moving it from the hook script into the Python section in the manual and adding code examples.
pname
name