def cleanupTemplates(self): """Cleanup the state of the templates used by the stylesheet and the ones it imports.""" libxsltmod.xsltCleanupTemplates(self._o)