Use PEP-3101 to implement proc_template.