I realize this is very similar to this question. However, I have a CSV file that always comes in the same format that I need to write out with columns in a different order
reorderfunc = operator.itemgetter(4, 5, 2, 3) ... newrow = reorderfunc(oldrow) ...