Adding local cache example in python