Python Set Global Variable In Function In Python