[Python-Dev] Comparison inconsistency with ExtensionClass