Understanding the role of global variables in Python and their scope.