Surface Intersection Python Algorithm