Some simple string permutation techniques in Python.