def overlap(a, b):
 _check_steps(a, b)
 return ((a.stop >= b.start) and (b.stop >= a.start))

def overlap ( a , b ) : _check_steps ( a , b ) return ( ( a . stop >= b . start ) and ( b . stop >= a . start ) )
check if two ranges overlap .