Python 3.9 is now generally available.

google.appengine.api.mail.is_ascii

Returns whether a string is in ASCII.