'Evaluate an expression.'

def Eval(self, exp):

    if (type(exp) not in [str, unicode]):
        raise Exception(desc='Must    be    a    string', scode=winerror.DISP_E_TYPEMISMATCH)
    return eval(str(exp), self.dict)
