PyMOL>from pymol2 import PyMOL
PyMOL>lst = []
PyMOL>for i in range(0,3): lst.append( PyMOL() )
PyMOL>for pi in lst: pi.start()
PyMOL>lst[0].cmd.load("dat/pept.pdb",quiet=0)
 CmdLoad: "dat/pept.pdb" loaded as "pept".
PyMOL>lst[1].cmd.load("dat/1tii.pdb",quiet=0)
HEADER    ENTEROTOXIN                             20-MAR-96   1TII
TITLE     ESCHERICHIA COLI HEAT LABILE ENTEROTOXIN TYPE IIB
COMPND    MOL_ID: 1;
COMPND   2 MOLECULE: HEAT LABILE ENTEROTOXIN TYPE IIB;
COMPND   3 CHAIN: D, E, F, G, H, A, C;
COMPND   4 SYNONYM: LT-IIB;
COMPND   5 ENGINEERED: YES;
COMPND   6 OTHER_DETAILS: LATENT/INACTIVE FORM
 ObjectMolecule: Read secondary structure assignments.
 ObjectMolecule: Read crystal symmetry information.
 Symmetry: Found 6 symmetry operators.
 CmdLoad: "dat/1tii.pdb" loaded as "1tii".
PyMOL>lst[2].cmd.load("dat/3al1.pdb",quiet=0)
HEADER    STRUCTURAL PROTEIN                      26-OCT-98   3AL1
TITLE     DESIGNED PEPTIDE ALPHA-1, RACEMIC P1BAR FORM
COMPND    MOL_ID: 1;
COMPND   2 MOLECULE: D, L-ALPHA-1;
COMPND   3 CHAIN: A, B;
COMPND   4 ENGINEERED: YES;
COMPND   5 OTHER_DETAILS: N TERMINI ARE ACETYLATED
 ObjectMolecule: Read secondary structure assignments.
 ObjectMolecule: Read crystal symmetry information.
 Symmetry: Found 2 symmetry operators.
 CmdLoad: "dat/3al1.pdb" loaded as "3al1".
PyMOL>for pi in lst: print pi.cmd.count_atoms()
107
5684
679
PyMOL>for pi in lst: pi.stop()
PyMOL>del lst
