'Appends a node to the end of the list at the given index.'

def append(self, node, index):

    lastButOne = self.sentinel.prev[index]
    node.next[index] = self.sentinel
    node.prev[index] = lastButOne
    self.sentinel.prev[index] = node
    lastButOne.next[index] = node
