Python Persistent Variable In Function On Excel