Python 3.9 is now generally available.

google.appengine.api.modules.get_modules

Returns a list of all modules for the application.

List of strings containing the names of modules associated with this application. The 'default' module will be included if it exists, as will the name of the module that is associated with the instance that calls this function.