Added autorun.py and fixed test.py