Python Create Csv File And Append Data In R