How about this?
Begin Routine
words = sentence.split()
numWords = len(words)
i = 0
frameCounter = 0
showISI = False
Each Frame
if i <= numWords-1:
if not showISI:
text.setText(words[i])
frameCount = 29 + (len(words[i].split()) * int(0.03*144))
frameCounter+=1
if frameCounter == frameCount:
i+=1
frameCounter = 0
showISI = True
if showISI:
text.setText(" ")
frameCounter += 1
if frameCounter == 72:
frameCounter = 0
showISI = False
else:
continueRoutine = False