EmployeeRecord = namedtuple('EmployeeRecord',
    'name, age, title, department, paygrade')
import csv
for line in csv.reader(open('employees.csv', 'rb')):
    emp = EmployeeRecord._make(line)
print(emp.name, emp.title)
Python - Import file into NamedTuple