There is a command print(TO_CSV...) for this.