Permutation In Python Without Itertools