modify autotest.py.