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