prepareDatasets.py : backward compatibility with old version of python