Namespaces and Scope in Python