Using Global Variable In Python Function