human
How to get all sub-elements of an element tree with Python ElementTree?
assistant
Here is some code to get all sub-elements of an element tree `a` excluding the root element

[elem.tag for elem in a.iter() if elem is not a]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.