How can I apply a namedtuple onto a function?,func(*r)