Understanding Caesar Cipher in Python