Fun with namedtuples, generators and csv processing