Change Global Variable Value In Function In Python