def make_sub_element(parent, tag, nsmap=None):
if use_lxml:<EOL><INDENT>return etree.SubElement(parent, tag, nsmap=nsmap)<EOL><DEDENT>return etree.SubElement(parent, tag)<EOL>
Wrapper for etree.SubElement, that takes care of unsupported nsmap option.