Script to create CSV file from YML file