make output from list-keys ready for the yaml file