You should just be able to do
brep = surface.ToBrep()
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Surface_ToBrep.htm
You should just be able to do
brep = surface.ToBrep()
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Surface_ToBrep.htm