How I setup a sqlite cache in python