python version with cache and data from ring API