Make tool python 2.4 compatible