你错过了raw_input()一行的结尾括号吗?
raw_input()
更改
input = raw_input("Type 1 for encryption, 2 for decryption, or 3 for information."
至
input = raw_input("Type 1 for encryption, 2 for decryption, or 3 for information.")