Python 3.9 is now generally available.

google.appengine.api.datastore_types.EncodeAppIdNamespace

Concatenates the application ID and namespace into a single string.

This method is needed for XML and datastore_file_stub.

app_id The application ID to encode.
namespace The namespace to encode.

The string encoding for the app_id, namespace pair.