human
Complete this python program:
def NamedTupleRow(cursor):
assistant
#Here is the Python program you requested.

    """Named tuple to allow attribute lookup by name.
    Requires py2.6 or above.
    """
    from collections import namedtuple
    attr_names = [x[0] for x in cursor._ColBufferList]
    class Row(namedtuple('Row', attr_names, rename=True), ):
        cursor_description = cursor.description
        def __new__(cls, iterable):
            return super(Row, cls).__new__(cls, *iterable)
    return Row