Generate All Permutations Of A String Python Definition