Fixed weak-ref issues. Using weakref.ref instead of weakref.proxy for the 'prev' link in the linked list