Chemical Python (ChemPy) is the name given to the lightweight chemical informatics library included with PyMOL.
PyMOL makes use of ChemPy to present users with copies of its internal molecular object data model (with various caveats). ChemPy models can be exported from PyMOL, modified using Python, and then reloaded back into PyMOL for subsequent visualization.