Change Global Variable In Python Function