Make wscript Python 2.4 compatible: fixes #296