def _fill_mi_header(row, control_row):
 last = row[0]
 for i in range(1, len(row)):
  if (not control_row[i]):
   last = row[i]
  if ((row[i] == '') or (row[i] is None)):
   row[i] = last
  else:
   control_row[i] = False
   last = row[i]
 return (row, control_row)

def _fill_mi_header ( row , control_row ) : last = row [ 0 ] for i in range ( 1 , len ( row ) ) : if ( not control_row [ i ] ) : last = row [ i ] if ( ( row [ i ] == '' ) or ( row [ i ] is None ) ) : row [ i ] = last else : control_row [ i ] = False last = row [ i ] return ( row , control_row )
forward fills blank entries in row .