Specify the PyMySQL version we can work with.

https://github.com/PyMySQL/PyMySQL/commit/e8ae4ce8812392c993d5029a5ccbf5667310b3fa
Method Cursor.errorhandler has been removed in the PyMySQL latest version. So this is the easiest way to work around.