Have been playing with Python to work on the National Cipher Challenge.  The string function translate seems to be tailor made for this sort of thing.