replace yaml.dump with new dump_yaml wrapper