update runtests.py to follow scipy