Guard against stack overflow in python version of bounding_box