With Python 2.2, dir() returns a lot more than
it used to. And with ExtensionClass under 2.2,
dir() on a class object returns names that getattr()
fails on.
The fix is to use vars() instead of dir() to
get the list of class attributes. This patch
does that.