Python 3.9 is now generally available.

google.appengine.tools.xml_parser_utils.GetNodeText

Returns the node text after stripping whitespace.