How To Find Permutation In Python