def get_rect_ymax(data):
 return max(data[0][1], data[1][1], data[2][1], data[3][1])

def get_rect_ymax ( data ) : return max ( data [ 0 ] [ 1 ] , data [ 1 ] [ 1 ] , data [ 2 ] [ 1 ] , data [ 3 ] [ 1 ] )
find maximum y value from four vertices .