def unproxy_object(obj):
 if isinstance(obj, ArrayCollection):
  return list(obj)
 elif isinstance(obj, ObjectProxy):
  return obj._amf_object
 return obj

def unproxy_object ( obj ) : if isinstance ( obj , ArrayCollection ) : return list ( obj ) elif isinstance ( obj , ObjectProxy ) : return obj . _amf_object return obj
returns the unproxied version of the object .