def make_box(poly):
    """Generate a bounding box from a polygon"""
    x = []
    y = []
    for p in poly:
        for point in p:
            x.append(point[0])
            y.append(point[1])
    return (min(x), min(y), max(x), max(y))