“cmd.pseudoatom” adds a pseudoatom to a molecular object, and will creating the molecular object if it does not yet exist.
def pseudoatom(object, selection='', name='PS1', resn='PSD', resi='1', chain='P', segi='PSDO', elem='PS', vdw=-1.0, hetatm=1, b=0.0, q=0.0, color='', label='', pos=None, state=0, mode='rms', quiet=1):