convert test scripts to one python script