Python Set Global Variable Value In Function Tableau