Number Of Permutations Python