def _split(rect):
    """
    Split a rectangle into two parts.

    'rect' is a rectangle, containing a tuple (x, y, w, h).
    """
    x, y, w, h = rect
    return ((x, y, int(w * 0.57), h),
            (x + w - int(w * 0.57), y, int(w * 0.57), h))