PyPhysicsSandbox
A tutorial on using observer functions in PyPhysicsSandbox. Not mentioned in the tutorial is that you may have multiple observer functions being called each time step.
Source
The Engineering of Conscious Experience
AI, Art & Consciousness