Converts method headers to Python docstring format in AffineCipher.