Python Define Global Variable And Use In Function