create a list containing all cartesian products of elements in list `a`,list(itertools.product(*a))