def __init__(self, path): self.path = path self._lock = multiprocessing.RLock() self._create_path(self.path)