contentdiv = contentnav.getparent()
contentdiv.insert(contentdiv.index(contentnav) + 1, ET.XML(
    "<div style='clear: both'></div>"))
print(ET.tostring(tree))
python lxml append element after another element