Python Tutorial: Variable Scope - Understanding the LEGB rule and global/nonlocal statements