Crypt Arithmetic Problem Python Programming