a light autotest frame write in python