Python Generate All Permutations Python Tutor