Added object mode set at head of export to prevent script failure if
export is not executed in object mode.
Merge pull request #124 from Ghostwalker71/fix/export_modeset

Improvement : Mode setting