python: CSV データの書き込み/読み込み

#スニペット

def loadCSV(name):
 with open(name + '.csv', 'rb') as f:
 reader = csv.reader(f)
 return list(reader)

def exportCSV(name,data):
 with open(name+'.csv', 'w') as f:
 writer = csv.writer(f, lineterminator='\n')
 writer.writerows(data)
 return

#load csv data
load_data = loadCSV('name')

#export data to csv
exportCSV('name',datalist)