add permutations python version