code: def preprocess_points(points, preprocessor):
    
    try:
      points = preprocessor(points)
    except Exception as e:
      raise PreprocessorError(e)
    return points
docs: form points if there is a preprocessor else keep them as such (assumes
    that check_points has already been called)