“cmd.rebuild” forces PyMOL to recreate geometric objects in case any of them have gone out of sync.
cmd.rebuild(string selection, string representation)
def rebuild(selection='all',representation='everything'):
rebuild | cmd.refresh | api