Python script "Converts text objects into single stroke curves"

hi, i ve a python script made by mitch to convert text to single stroke curve.
i add a line to keep the name of the text object to the curve, but there is now a error message:

what is this error?

EOF = “End of file”
EOL = “End of line”

Sounds like you left out something at the end of a line near the end of the file or have bad formatting on a line somewhere…

For example, this will provoke the same error message: