'Pop the I{top} frame.
@return: The popped frame.
@rtype: L{Frame}
@raise StopIteration: when stack is empty.'

def pop(self):

    if len(self.stack):
        return self.stack.pop()
    else:
        raise StopIteration()
