“cmd.rename” creates new atom names which are unique within residues.
cmd.rename(string selection, int force )
def rename(selection="all", force=0, quiet=1):
rename | cmd.alter | api