make scripts/regression.py compatible with python2 and python3