def u(x, ip=None): if type(x) is pyparsing.ParseResults: return x.asList()[0] if isinstance(x, Symbolic): return x.value(ip) return x