def __init__(self, path):
        self.path = path
        self.body_labels = collections.OrderedDict()
def exitMode(self, mode):
        if mode in self.modeList:
            self.modeList.remove(mode)