python mysqldb issue