Refined pydoc_template