bugfix in regression.py script