Python implementation of Tree Regular Expressions for XML (TREX)