how can i apply a namedtuple onto a function?,func(*r)