Python Define Global Variable In Function In Excel