1Prior to version 2.1, Python’s namespaces were determined almost wholly dynamically; this often lead to subtle bugs, and hampered the utility of nested functions.