rename_node_attrs function

Rename a node attribute