For some reason I get errors when I run your mdl7 export script. It always worked fine, but after installing blender 2.49b I got errors. Installing the 2.49a or 2.49 blender version does not solve the problem. Did anyone have these errors too?
I do not have a picture about it, but it says the error is in line 259 if you want to have a picture about the errors I could upload one.