def level(self):
        """Return the current scope level
        """
        res = len(self._scope_stack)
        if self._parent is not None:
            res += self._parent.level()
        return res
def level ( self ) : res = len ( self . _scope_stack ) if self . _parent is not None : res += self . _parent . level ( ) return res
Return the current scope level