Converted run_tests.sh to python script (#168)