That error is pointing to the line escape_fix, yes? I've tried your edit and I didn't get that error. Are you using any other scripts, perhaps one that modifies class Window_PartyCommand?
But looking at the script as a whole, and reading the original post, I can tell this guy was at the infancy of programming. There are a number of bad syntax throughout the script to where it doesn't work as it says it should.