Python: Procedure definition with documentation template