import itertools


def generate_final_heads(*iterables):
    """
    Generate unique headers from files
    :param iterables: headers file
    :return: a unique set of headers
    """
    return {
        head for head in itertools.chain(*iterables)
    }