py: Allow keyword arguments for namedtuple