def scale_bounding_box(bounding_box,scale):
    """Scales bounding box coords (in dict from {x1,y1,x2,y2}) by x and y given by sclae in dict form {x,y}"""
    scaled_bounding_box = {
        "x1" : int(round(bounding_box["x1"]*scale["x"]))
        ,"y1" : int(round(bounding_box["y1"]*scale["y"]))
        ,"x2" : int(round(bounding_box["x2"]*scale["x"]))
        ,"y2" : int(round(bounding_box["y2"]*scale["y"]))
    }
    return scaled_bounding_box