def activate(self, height, index):
    if (len(self.activity) <= index):
        self.activity.insert(index, [])
    if ((len(self.activity[index]) > 0) and (self.activity[index][(- 1)] != (height - 1))):
        self.deactivate(index)
    self.activity[index].append(height)
def activate(self, height, index):
    if (len(self.activity) <= index):
        self.activity.insert(index, [])
    if ((len(self.activity[index]) > 0) and (self.activity[index][(- 1)] != (height - 1))):
        self.deactivate(index)
    self.activity[index].append(height)