Python 3.9 is now generally available.

google.appengine.api.users.CreateLogoutURL

Computes the logout URL and specified destination URL for the request.

This function works for Google Accounts applications.

dest_url String that is the desired final destination URL for the user after the user has logged out. If dest_url does not specify a host, the host from the current request is used.

Logout URL as a string.