code: def get_property_dict(entity_proto):
    
    return dict((p.key, p.value) for p in entity_proto.property)
docs: Convert datastore.Entity to a dict of property name -> datastore.Value.
  
    Args:
      entity_proto: datastore.Entity proto message.
  
    Usage:
      >>> get_property_dict(entity_proto)
      {'foo': {string_value='a'}, 'bar': {integer_value=2}}
  
    Returns:
      dict of entity properties.