Added from_python to the TemplateValidator.