
Makes for some easy rapid texturing with the illustration software of your choice.
Source:
http://pastebin.com/6Pm2HKBV
Oh, you need python 2.6 installed. Then take the source code, and paste it into a text file with a .py extension.
Make sure to change the object file name and the sizes to your info.
Double click on .py file (make sure the .obj file is next to it) and it will net you an .ai file.