I would suggest printing the first few items in replace. I think you will find that there is more than "tell" in replace, so the line
for tell in replace:
yields an error. You might try inserting this modification:
replace.append(tell)
replace.append(line)
#
# change to
replace.append((tell, line))
#
# and then -----------------------
for tell in replace:
#
# becomes
for item in replace:
for tell, line in item:
woooee
Posting Maven
2,707 posts since Dec 2006
Reputation Points: 827
Solved Threads: 780
Skill Endorsements: 9