vote2 = votemil[:spaceindex]
mills = votemil[spaceindex + 1:]
votetype = x[4]
numyears = x[6]
yearcom = x[8]
yeardue = x[10]
reason = x[11]
data = [filename, county, district, vote1, vote2, mills, votetype, numyears,
    yearcom, yeardue, reason]
print('data', data)
Data analysis for inconsistent string formatting