Get the summation of all non-expired points

def value(self):
        """ Get the summation of all non-expired points """
        now = time.time()
        cutoff = now - self.window
        while self.points and self.points[0][0] < cutoff:
            self.points.pop(0)
        return sum([p[1] for p in self.points])