Python-only version of `WeakList`.