0x14,0xb2,0xb2,0x31,
  0x7,0x9a,0x68,0x90,0x87,0x18,0xc0,0x7c,0xf2,0x41,0xa4,0xef,0x36,0x99,0xa4,0x62,
  0xd4,0x75,0x24,0x7d,0xa2,0x26,0xc9,0xce,0x7d,0x7b,0x52,0xc6,0xa4,0x8d,0xdc,0x14,
  0xec,0x4a,0xf5,0xa8,0xe4,0xf9,0xb2,0x15,0xd3,0x19,0xe6,0x9b,0x1c,0x72,0x6e,0x24,
  0x10,0xa8,0x3a,0x64,0xd3,0x92,0x8d,0xb5,0x67,0x45,0x8,0x26,0xf5,0xd5,0x96,0x4c,
  0x6a,0x7d,0x73,0x4a,0xca,0xcd,0x18,0x8d,0x7a,0x67,0x90,0x7,0x26,0x95,0x49,0xa,
  0x59,0xb0,0xe7,0xd6,0xa3,0x2c,0x5b,0x2a,0x1c,0x2e,0x39,0x24,0xf7,0xac,0x63,0x7,
  0xd5,0x9a,0x4e,0x53,0x51,0x4a,0x44,0x8b,0x1e,0x22,0xea,0xa9,0xb9,0xb3,0xb0,0xe,
  0xbf,0x5a,0x88,0xf9,0x89,0x29,0x4,0x28,0xf4,0x55,0x35,0x19,0x79,0x9,0x4,0x38,
  0xa,0xf,0x7a,0x79,0xdc,0xc3,0x6,0x42,0xdb,0x86,0x3e,0x5e,0x33,0x44,0x67,0xca,
  0xad,0x71,0xfd,0x5e,0xeb,0x9a,0x3a,0x22,0x65,0x6c,0x61,0x87,0x19,0xef,0x4c,0x72,
  0xb8,0xc9,0x23,0xa5,0x39,0x4b,0x22,0x85,0xca,0x90,0x6,0x32,0xd5,0x5e,0x47,0x49,
  0x27,0x28,0x4a,0x8c,0x77,0xce,0x69,0x29,0xcd,0xe9,0xd0,0xd6,0x8d,0x39,0x4a,0xc9,
  0xbd,0x85,0x10,0x83,0x22,0xbe,0xe2,0x57,0xaf,0xb5,0x35,0xc8,0x59,0xb6,0xb3,0xc,
  0x37,0x63,0x56,0x55,0x43,0x80,0x7c,0xd2,0x3d,0x7,0x6a,0x81,0x8a,0x2b,0x90,0x5d,
  0x37,0x9e,0x99,0x1c,0xd4,0x29,0x2b,0xd9,0xb3,0x5a,0x8e,0x33,0x77,0xbf,0xe8,0x39,
  0x88,0xc1,0x8f,0xee,0x71,0xd4,0x71,0x51,0x2a,0xed,0x39,0x27,0x38,0x1f,0x76,0x98,
  0x23,0x91,0x46,0xe5,0x94,0x91,0xef,0xce,0x29,0x5e,0x40,0x93,0xaf,0x32,0x9d,0xdd,
  0xd7,0x1b,0x57,0xeb,0x5a,0xd3,0x8e,0xba,0x33,0x3a,0xb3,0x6a,0xc9,0x68,0x2a,0x90,
  0xce,0x58,0x6e,0x57,0xfe,0xe8,0xa9,0x55,0xe4,0x91,0x3a,0x80,0x47,0x6,0xab,0xb4,
  0x8e,0xce,0x42,0x33,0x22,0x93,0x8c,0xed,0xc5,0x5c,0x8f,0x60,0x8b,0x1b,0xb3,0xe8,
  0x40,0xcd,0x35,0x2b,0x33,0x29,0xc7,0x96,0x4b,0x4d,0x86,0x2b,0x6c,0xc2,0x9e,0x82,
  0x95,0xe4,0x95,0xe5,0x1,0x39,0x38,0xed,0xda,0x92,0x30,0xe1,0x64,0x69,0x59,0x2,
  0xff,0x0,0xb4,0x39,0x3f,0x4a,0x89,0x8a,0xa4,0xe1,0x93,0xe5,0x72,0x39,0x25,0xb8,
  0xc7,0xd3,0xd6,0xb5,0x52,0x4f,0xcd,0x8b,0x9a,0x52,0xf7,0x88,0xa4,0x32,0xbb,0x6d,
  0x1,0xd8,0x3,0x92,0x7b,0x54from idlelib import rpc

def remote_object_tree_item(item):
    wrapper = WrappedObjectTreeItem(item)
    oid = id(wrapper)
    rpc.objecttable[oid] = wrapper
    return oid

class WrappedObjectTreeItem:
    # Lives in PYTHON subprocess

    def __init__(self, item):
        self.__item = item

    def __getattr__(self, name):
        value = getattr(self.__item, name)
        return value

    def _GetSubList(self):
        sub_list = self.__item._GetSubList()
        return list(map(remote_object_tree_item, sub_list))

class StubObjectTreeItem:
    # Lives in IDLE process

    def __init__(self, sockio, oid):
        self.sockio = sockio
        self.oid = oid

    def __getattr__(self, name):
        value = rpc.MethodProxy(self.sockio, self.oid, name)
        return value

    def _GetSubList(self):
        sub_list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
        return [StubObjectTreeItem(self.sockio, oid) for oid in sub_list]
