The weakref module lets you refer to an object without preventing it from being garbage collected.
weakref
Read more at pymotw.com: weakref