Improving tabs_to_csv script