I know little about scons or python, but working with kstreamripper it became apparent that the current 'tde-config --version' return was causing the build to fail due to the string not including a '3' which causes a chain reaction of failures:
You gotta check the bugzilla more often. :)
http://bugs.pearsoncomputing.net/show_bug.cgi?id=946
I posted a patch to help with the specific problem you address, but the build still fails and I have not pursued further.
Darrell