Convert run_tests.sh to a Python script (#498)

Replaces run_tests.sh with run_tests.py for long term maintablility.
Please use single quotes and format the string via %s.