A couple of years ago I did this as an extension module. It might still be around (I still use it). Take a look for something called objectmodule. It's actually a mechanism for implementing different object models from within python. Beware, class methods are just part of what it is capable of.
Hi Don! I still remember some of the stuff you showed me 6.5 years ago, and some of the ideas my *finally* find their way into Python... Watch PEP 252!
--Guido van Rossum (home page: http://www.python.org/%7Eguido/)