Python Define Global Variable In Function