Scope Of Variable In Function In Python