python: Switch class to object, test, and document.