def __init__(self, path):
        self.path = path
        self.body_labels = collections.OrderedDict()
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)