Python Use Function To Change Global Variable