Oh I just realized this digging into the Sketchup API reference!
So no hash for exports except DAEs. I simply replaced the "opts" parameter with "False" and everything works fine... You just have to set the OBJ export parameters right before running the script.
Anyway, thanks a lot again! This will save me a lot of clics!
I attached the "revised" cleaned up script if anyone needs it!
David