How To Access Global Variable Inside A Function In Python