What kind of object displays itself as (e.g.) <ClubmaskObject node6 at 0x8336848> and how does the class of that object define __cmp__? Note that OOSets require a consistent total ordering among their members, so how __cmp__ is defined is the most interesting question.