Import namedtuple directly

This avoids splitting the namedtuple call over two lines.