Implement replacement for namedtuple