Python 3.9 is now generally available.

google.appengine.api.full_app_id.put

Set the application ID in the environment.

app_id Application ID as a string.
environ Environment dictionary. Uses os.environ if None.