Check out sympy.crypto.crypto

In autocomplete in the editor, it doesn't show up. But in the console, it does. Either way, it has a ton of encryption functions already in there, including Caesar cipher.