python snippet to verify the overlapping to two rectangles.