Python 3.9 is now generally available.

google.appengine.api.namespace_manager.get_namespace

Get the current default namespace or ('') namespace if unset.