Voodoo camera tracking script fail. "Python script fail, look in the console for now"

Ok,

so I downloaded voodoo, and tracked my scene. Exported it to a blender .py file, and when I run it, I get the “Python script fail, look in the console for now…” error.

My script:

http://pastebin.com/9wSg54Jq

It was too long for the post, so I put it in pastebin.

I had to cut out a lot of the verts.append because if I didn’t, my post would be 370126 characters long, and it has to be 10000 chars.

I assume you did a google search before posting?