scons Python unittesting, and minor bugfix.