Python Generate All Permutations Python