permutations with repetition python