def __init__(self, path):
        self.path = path
        self.body_labels = collections.OrderedDict()
def _find_user(self, dn):
        return next(i for (i, d) in enumerate(self.directory) if d["dn"] == dn)