'Pop a context from the context stack if there is more than
one context in the stack.
Will not remove the last context in the stack.'

def pop_context(self):

    ctx = self.current_context
    if (len(self.context_stack) > 1):
        ctx.pop()
        self.context_stack.pop()
    assert self.context_stack
