def METHOD_NAME(tag, value=None, cdata=False, **attrs):
    xmlt = etree.Element(tag, attrs)
    if value:
        if cdata:
            xmlt.text = etree.CDATA(value)
        else:
            xmlt.text = value
    return xmlt