Python strings have a function called maketrans(). I have no idea what it does, but it makes me happy.
@0shame it puts cat ears on the string
@0shame i think that's a static function of the string class, not a member function of string objects. And it makes a character translation table for use in another string function (this time a string object member function, i think) that replaces characters with other characters.
@0shame it creates a transitive mapping, hope this helps (i have no idea what that means)