code: def debug(sequence):
      
      points = []
      for i, p in enumerate(sequence):
          copy = Point(p)
          copy['index'] = i
          points.append(copy)
      return sequence.__class__(points)
docs: adds information to the sequence for better debugging, currently only
      an index property on each point in the sequence.