Fixed MySQLdb to mysql-connector incompatibilities