“cmd.iterate” iterates over an expression within a temporary namespace for each atom.
def iterate(selection, expression, quiet=1, space=None):
iterate | api