Python template with Hooking.