The Python version of PickleCache.minimize does what the C version does and ghosts the evicted objects.