add next permutation python version