Update PyMySQL monkey-patching for compatibility with latest release.

The details of PyMySQL.Connection.autocommit have changed in the latest upstream release, this updates our monkey-patching of that method for compatibility.