local and global scope in python