You can get the referent from the weakref object by calling it:
obj = ref()
From weakrefdocs :
Weak reference objects do not have attributes or methods, but allow the referent to be obtained if it still exists by calling it. If the referent no longer exists, a call to the reference object returns None.
-, - weakref.