Modify scripts to avoid complaints on python 2.4