def get_bounding_box(a, b):
    """
    Finds bounding box of two cubes as another cube
    :param a: cube a, tuple of tuple ((min coords), (max coords))
    :param b: cube b, tuple of tuple ((min coords), (max coords))
    :return: bounding box, tuple of tuple ((min coords), (max coords))
    """
    return tuple(zip(*[(min(i, k), max(j, l)) for i, j, k, l in zip(a[0], a[1], b[0], b[1])]))