Fixed problem where, if a model doesn't contain any tools objects, it would fail when generating the python script.
Fixed problem where, if a model doesn't contain any tools objects, it would fail when generating
the python script.

satovey/heekscnc,satovey/heekscnc,jihyun-kim/heekscnc,satovey/heekscnc,jihyun-kim/heekscnc,asmuelle/heekscnc,asmuelle/heekscnc,asmuelle/heekscnc,jihyun-kim/heekscnc,asmuelle/heekscnc,jihyun-kim/heekscnc,satovey/heekscnc