Create Next Permutation (pyemma)