def find_kink(curvature, angle):
 kinks = []
 kink_index = [i for i in range(len(curvature)) if (abs(curvature[i]) < angle)]
 return kink_index

def find_kink ( curvature , angle ) : kinks = [ ] kink_index = [ i for i in range ( len ( curvature ) ) if ( abs ( curvature [ i ] ) < angle ) ] return kink_index
contour is array shape=(number of points .