local and global scope in python programs