Permutations Of A Number In Python