My nesting was off. Instead of:
if row[0] != checkID:
if output != "":
print output, "this is a test"
checkID=row[0]
output=row[0:11]
else:
output=output + (row[8:11])
I had:
if row[0] != checkID:
if output != "":
print output, "this is a test"
checkID=row[0]
output=row[0:11]
else:
output=output + (row[8:11])
Silly typos. Thanks all!