def _union_lists(lists):
    """
    Return a list that contains of all the elements of lists without
    duplicates and maintaining the order.
    """
    seen = {}
    return [seen.setdefault(x, x)
            for l in lists for x in l
            if x not in seen]