I still bet that this script is not the erroring one.
why? because the error is not just error but it is a crash.
and if script crashes, there has to be something fundamentally wrong, on the line given by kixtart.
and there is not in this one.

suzanne, for test purposes, download one of the kixtart 4.5x releases and run the script with it.
the error reporting has changed slightly from the days of kix 2001 and the error given might prove a bit more informative.