Permutation Program In Python