<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def vectorize(e, tolerance=0.1):
 """ vectorizes the pdf object's bounding box min_width is the width under which we consider it a line instead of a big rectangle """

    tolerance = max(tolerance, e.linewidth)
    is_high = e.height > tolerance
    is_wide = e.width > tolerance
    # if skewed towards a line
    if is_wide and not is_high:
        return (e.width, 0.0)
    if is_high and not is_wide:
        return (0.0, e.height)