String permutations using itertools.permutations