Use print(TO_CSV,...). This it the most flexible method.