Affine cipher in python.