python + mysqldb executemany,cursor.close()