'Returns the named parse results as a nested dictionary.'

def asDict(self):

    if PY_3:
        item_fn = self.items
    else:
        item_fn = self.iteritems
    return dict((((k, v.asDict()) if isinstance(v, ParseResults) else (k, v)) for (k, v) in item_fn()))
