Python 3.9 is now generally available.

google.appengine.api.datastore_types.PackBlob

Packs a Blob property into a entity_pb2.PropertyValue.

name The name of the property as a string.
value A Blob instance.
pbvalue The entity_pbs.PropertyValue to pack this value into.