Compute all permutations of a string in Python | Hacker News Reader