test: Remove duplicate JSON parsing

The query_ssh function did a first pass of parsing (using Python) that
didn't add any value and then the output was re-parsed using jq to get a
test result. Remove the Python parsing, which also removes Python as a
test dependency.

Change-Id: I721894642a0bb40709ee550eb5d4ae02e78e7eff
diff --git a/test/docker/run_tests/Dockerfile b/test/docker/run_tests/Dockerfile
index b3062da..1ecd6b3 100755
--- a/test/docker/run_tests/Dockerfile
+++ b/test/docker/run_tests/Dockerfile
@@ -6,7 +6,7 @@
 ENV USER_HOME /home/$USER
 ENV WORKSPACE $USER_HOME/workspace
 
-RUN apk --update add --no-cache openssh bash git util-linux openssl shadow curl jq python
+RUN apk --update add --no-cache openssh bash git util-linux openssl shadow curl jq
 RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
 
 RUN groupadd -f -g $GID users2
diff --git a/test/test_dependson.sh b/test/test_dependson.sh
index 284768e..6dc4a0e 100755
--- a/test/test_dependson.sh
+++ b/test/test_dependson.sh
@@ -4,8 +4,7 @@
 gssh() { ssh -x -p "$PORT" "$SERVER" "$@" ; 2>&1 ; } # [args]...
 
 query_ssh() {
-    gssh gerrit query --format=json "$@" | head -1 | \
-        python -c 'import sys,json; print json.dumps(json.load(sys.stdin))'
+    gssh gerrit query --format=json "$@" | head -1
 }
 
 query_http() { # query > changes_list