Added sys module to cache.py