def _unwrap(obj): if isinstance(obj, UserList) or isinstance(obj, UserDict): return obj.data return obj