import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('DSCoreNodes')
from DSCore import *
Curves = IN[0]
Surfaces = IN[1]
Ptse= []
for curves,surface in zip(Curves,Surfaces):
temp = []
for c in curves:
Ptsg= Geometry.IntersectAll(c,surface)
temp.append(Ptsg)
Ptse.append(temp)
OUT = Ptse