Fix debug prints in tools/cache.py