Python: Python: local and global namespaces