def point(point):
 poly = toolpath.Polygon()
 (x, y) = point
 poly.addPoint(toolpath.Point(x, y))
 return poly

def point ( point ) : poly = toolpath . Polygon ( ) ( x , y ) = point poly . addPoint ( toolpath . Point ( x , y ) ) return poly
returns polygon for point as a polygon object .