If I'm understanding the question correctly, I think I'd do the following:
cell_list = []
cell_list.append(TD("...first td here..."))
cell_list.append(TD("...additional cell..."))
cell_list.append(TD("...additional cell..."))
if var == 1:
cell_list.append('my conditional cell')
cell_list.append(TD("...remaining cells..."))
cell_list.append(TD("...remaining cells..."))
cell_list.append(TD("...remaining cells..."))
Or, if you want to specify all the standard cells at one time...
cell_list = [TD(), TD(), TD(), TD(), TD())
if var == 1:
cell_list.insert(3, TD('conditional cell'))
-Jim