def safe_obtain(proxy):
 if (type(proxy) in [list, str, bytes, dict, set, type(None)]):
  return proxy
 conn = object.__getattribute__(proxy, '____conn__')()
 return json.loads(conn.root.json_dumps(proxy))

def safe_obtain ( proxy ) : if ( type ( proxy ) in [ list , str , bytes , dict , set , type ( None ) ] ) : return proxy conn = object . __getattribute__ ( proxy , '____conn__' ) ( ) return json . loads ( conn . root . json_dumps ( proxy ) )
safe version of rpycs rpyc .