def defuse_xml_libs():
 from defusedxml import defuse_stdlib
 defuse_stdlib()
 import lxml
 import lxml.etree
 from . import etree as safe_etree
 lxml.etree = safe_etree

def defuse_xml_libs ( ) : from defusedxml import defuse_stdlib defuse_stdlib ( ) import lxml import lxml . etree from . import etree as safe_etree lxml . etree = safe_etree
monkey patch and defuse all stdlib xml packages and lxml .