Add safeties to global options variable

This is necessary if importing idifference.py as a module.

Signed-off-by: Alex Nelson <a.nelson@prometheuscomputing.com>

Conflicts:
	python/idifference.py

(This comes from a commit in a long-ago forked development branch.  To
resolve the conflict, I had to trim away some changes to the output
report.)