Keyword Cipher in Python