updating logic for python 2.6 in sconscript.