How to generate all permutations of a list in Python,"itertools.permutations([1, 2, 3])"