lxml
Element.getroottree()
ElementTree
For any Element instance E, this method call returns the ElementTree instance that contains E:
Element
E
E.getroottree()