Convert run_tests script to Python (#168)

This PR addresses Issue #168