code: def rewrite_properties(self, properties):
          
          with self.__library_storage_lock:
              self.__library_storage = properties
          self.__write_properties(None)
docs: Set the properties and write to disk.