Human: All combinations of a list of lists Assistant: 
Here is some code to create a list containing all cartesian products of elements in list `a`

list(itertools.product(*a))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.