Add import for namedtuple