[python] logginghandler for MySQL