def set_points(self, updates):
    for (i, pt) in updates:
        self.points[i] = pt
    dispatcher.send('points changed', sender=self)
def set_points(self, updates):
    for (i, pt) in updates:
        self.points[i] = pt
    dispatcher.send('points changed', sender=self)