<human>:  Expat parsing in python 3
<bot>: Here is some code to parse a file `sample.xml` using expat parsing in python 3

parser.ParseFile(open('sample.xml', 'rb'))

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