“python” delimits a block of literal Python code embedded in a PyMOL command script.
python
for a in range(1,10):
b = 10 - a
print a, b
python end
Literal Python blocks avoid the annoying requirement of having to use explicit line continuation markers for multi-line Python commands embedded within Python scripts.