from io import StringIO
from xml.etree import cElementTree as etree
xml = '<a>aaa<b>bbb</b></a>'
for event, elem in etree.iterparse(StringIO(xml)):
    pass
How do I parse XML from a Google app engine app?