support mysql.connector and python3