Remade run_tests.sh as a Python Script