“cmd.rotate” rotates the atomic coordinates of atoms in a selection about an axis. Alternatively, it modifies the matrix associated with a particular object or object state.
cmd.rotate(list-or-string axis, float angle, string selection, int state, int camera, string object)
def rotate(axis='x', angle=0.0, selection="all", state=-1, camera=1, object=None, origin=None, object_mode=0):