def __WriteDatastore(self):
    if self.__IsSaveable():
      encoded = []
      for kind_dict in self.__entities_by_kind.values():
        encoded.extend(entity.encoded_protobuf for entity in kind_dict.values())

      self.__WritePickled(encoded, self.__datastore_file)
Writes out the datastore file. Be careful! If the file already exists,
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore_file_stub.py/DatastoreFileStub.__WriteDatastore