Implementing the Caesar cipher in Python