Python Persistent Variable In Function Excel