Simple string encryption program written in Python