Python + MySQLdb executemany,cursor.close()