It definately looks like a rotation order problem. I was getting very similar results matching up a village to a lake edge.
Sorry for jumping in on this thread without knowing what you've done in the script. Am I right in asuming that all the keyframes in the rotational columns mach up in value? If so, then something is not right in matching the transform order. I'm pretty sure you can't just swap rotation columns around in a text editor, as the rotation order in TG tells the camera to first roll in Z, then with the X axis rotated pitch up or down along that axis, which then sets the Y axis. If you rearange that order, to say X,Y,Z, and feed in the same rotations, you'll pitch up/down first, then swivel on the new Y axis, then finally roll on the new Z, and end up facing in a very different direction. Try rotating your index finger with thumb and middle at 90 degrees to each other, through those translations, with the same values in for x,y,z.
Sorry if I'm stating the bleeding obvious.