Crypt Arithmetic Problem In Python