How to create loops from a holed surface?

It’s working. Thanks a lot. But I’ve a problem:

RemoveIfNot is not working to remove the points from lists, to get only polylines.

Edit: Sorry. I’ve already realized that the string is “Autodesk.DesignScript.Geometry.Point”