Python 3.9 is now generally available.

google.appengine.api.modules.get_current_module_name

Returns the module name of the current instance.

If this is version "v1" of module "module5" for app "my-app", this function will return "module5".