def append_scope ( self ) : self . stack . current . append ( Scope ( self . stack . current . current ) )
how to create a scope in python
Create a new scope in the current frame .
def append_scope(self):
        """Create a new scope in the current frame."""
        self.stack.current.append(Scope(self.stack.current.current))