write_yaml