Call save_cache on self not instance created in if __name__ == "__main__": ...