The scriptutil.py module was refactored and does not require python2.5 any more. It will work perfectly fine with an earlier python release (e.g. 2.4) as well.
scriptutil.freplace() function was previously using the functools module to curry the regex subn function. The new version is achieving the same effect without using functools.