def getTopPath(path):
 top = (-9.876543219876543e+17)
 for point in path:
  top = max(top, point.z)
 return top

def getTopPath ( path ) : top = ( - 9.876543219876543e+17 ) for point in path : top = max ( top , point . z ) return top
get the top of the path .