def __init__(self, name, filename=None):
        self.name = name
        super(NamedRequirements, self).__init__(filename=filename)
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)