Rework scripts to support Python2.4.3, more error handling