The ClassRegistry class is accessible via the metasqlobject.classreg module.
See the source for more information.