Surface Intersection Python Code For Snake