finalzied bg.py, the background script for caching video times