[python] add overlapping rectangles