def bbox_vert_aligned_left(box1, box2):
    """
    Returns true if the left boundary of both boxes is within 2 pts
    """
    if not (box1 and box2):
        return False
    return abs(box1.left - box2.left) <= 2
def bbox_vert_aligned_left ( box1 , box2 ) : if not ( box1 and box2 ) : return False return abs ( box1 . left - box2 . left ) <= 2
Returns true if the left boundary of both boxes is within 2 pts