def check_fields_past_bounds(header, mapping_data, warnings):
 desc_field = 'Description'
 correction = 1
 try:
  desc_field_ix = header.index(desc_field)
 except ValueError:
  return warnings
 for curr_row in range(len(mapping_data)):
  for curr_col in range(len(mapping_data[curr_row])):
   if (curr_col > desc_field_ix):
    warnings.append(('Data field ' + ('%s found after Description column DCTB %d,%d' % (mapping_data[curr_row][curr_col].replace('\n', ''), (curr_row + correction), curr_col))))
 return warnings

def check_fields_past_bounds ( header , mapping_data , warnings ) : desc_field = 'Description' correction = 1 try : desc_field_ix = header . index ( desc_field ) except ValueError : return warnings for curr_row in range ( len ( mapping_data ) ) : for curr_col in range ( len ( mapping_data [ curr_row ] ) ) : if ( curr_col > desc_field_ix ) : warnings . append ( ( 'Data field ' + ( '%s found after Description column DCTB %d,%d' % ( mapping_data [ curr_row ] [ curr_col ] . replace ( '\n' , '' ) , ( curr_row + correction ) , curr_col ) ) ) ) return warnings
checks for fields after description header .