def ElementWithText(tag, text, **extra):
 e = Element(tag, **extra)
 e.text = text
 return e

def ElementWithText ( tag , text , ** extra ) : e = Element ( tag , ** extra ) e . text = text return e
a shorthand function to create elements with text .