Workaround for py2.6 getmembers bug.