def __init__(self, path):
        self.path = path
        self.body_labels = collections.OrderedDict()
def lock_temp(self, key):
    self.lock(key)
    try:
      yield
    finally:
      self.unlock(key)