Create curve from space enclosed by surface?

Because the GH code is useless without the geometry. Apparently your code refers to curves in a Rhino file, which you didn’t post here. So either post the Rhino file or internalize the curves. preferably after the plugin code.

From here, suggestion #3:

Surface Split