>>> import codecs >>> codecs.encode("cfrhqb-fpvragvsvp enpvny VD fgngvfgvpf", "rot13") 'pseudo-scientific racial IQ statistics'