Permutations Code In Python For Creating