Access Both Local And Global Variable Inside A Function In Python