code: def to_dict(self):
          
          return {'type': self.__class__.__name__,
                  'points': self.points.tolist(),
                  'knots': self.knots.tolist(),
                  'closed': self.closed}
docs: Returns a dictionary with all of the information
          about the entity.