apply itertools.product to elements of a list of lists `arrays`,list(itertools.product(*arrays))