def flatten_lists(lists):
    """
    [(x_1, ..., x_n), ..., [y_1, ..., y_m], ..., z1, z2, ...] -> [x_1, ..., x_n, ..., y_1, ..., y_m, ..., z1, z2, ...]
    :param lists:
    :return:
    """
    l = []
    for item in lists:
        if type(item) in {tuple, set, list}:
            l += list(item)
        else:
            l.append(item)
    return l
