with open('test.csv', 'wb') as test_file:
    file_writer = csv.writer(test_file)
for i in range(item_length):
    file_writer.writerow([x[i] for x in lol])
Python, transposing a list and writing to a CSV file