update runtests script from scipy