Reference Global Variable In Function Python Definition