build the final string output with the csv module as well