All possible permutations of a set of lists in Python,list(itertools.product(*s))