MD2 importer : animation broken with 2.40 ?

The md2 importer (Quake2 models) bundled with Blender 2.40 seem to be broken. The animation isn’t imported (the comment in the script said it should work).
My goal is to use a MD3 importer (Quake3) but the various scripts available on the net have the same problem (all work except animation). The script are very similar.
The problem in the script is probably in this part :

def animate_md2(md2, mesh_obj):
	######### Animate the verts through keyframe animation
	mesh=mesh_obj.getData()
	for i in xrange(1, md2.num_frames):
		#update the vertices
		for j in xrange(0,md2.num_vertices):
			x=(md2.frames[i].scale[0]*md2.frames[i].vertices[j].vertices[0]+md2.frames[i].translate[0])*g_scale.val
			y=(md2.frames[i].scale[1]*md2.frames[i].vertices[j].vertices[1]+md2.frames[i].translate[1])*g_scale.val
			z=(md2.frames[i].scale[2]*md2.frames[i].vertices[j].vertices[2]+md2.frames[i].translate[2])*g_scale.val

			#put the vertex in the right spot
			mesh.verts[j].co[0]=y
			mesh.verts[j].co[1]=-x
			mesh.verts[j].co[2]=z

		mesh.update()
		NMesh.PutRaw(mesh, mesh_obj.name)
		#absolute keys, need to figure out how to get them working around the 100 frame limitation
		mesh.insertKey(i,"absolute")
		
		#not really necissary, but I like playing with the frame counter
		Blender.Set("curframe", i)

There is no error, the model is correctly imported, but only the animated frames are not added.
Is there a change related to NMesh.PutRaw or mesh.insertKey in recent python API evolution ?