Python Persistent Variable In Function In Excel