run-test: Convert from bash to python. Test: Diff executed commands of "test.py -r --all-target --all-run --all-gc" Change-Id: I3da06551615a4c536c112b40624e373cc737e85f