[Python-ideas] Better support for finalization with weakrefs