rafactoring code from run_tests.py into Python module

Should this be removed?