How To Do Permutations In Python