Pigment-python contains modules that allow you to use Pigment in Python programs. At present, it is a fairly complete set of bindings.