code: def add_properties(entity_proto, property_dict, exclude_from_indexes=None):
    
    for name, value in property_dict.iteritems():
      set_property(entity_proto.properties, name, value, exclude_from_indexes)
docs: Add values to the given datastore.Entity proto message.
  
    Args:
      entity_proto: datastore.Entity proto message.
      property_dict: a dictionary from property name to either a python object or
          datastore.Value.
      exclude_from_indexes: if the value should be exclude from indexes. None
          leaves indexing as is (defaults to False if value is not a Value
          message).
  
    Usage:
      >>> add_properties(proto, {'foo': u'a', 'bar': [1, 2]})
  
    Raises:
      TypeError: if a given property value type is not supported.