Blender now imports the UV coordinates properly:

Now, to write the export script…