Python 3.9 is now generally available.

google.appengine.api.datastore_types.PackUser

Packs a User property into a entity_pb2.PropertyValue.

name The name of the property as a string.
value A users.User instance.
pbvalue The entity_pb2.PropertyValue to pack this value into.