Permutation Of A Number In Python