title: Fetching Gerrit SSH output in python
body: <p>So I am using plumbum to execute the ssh command against gerrit, but I cant seem to be able to pull the output in as a json dictionary. </p>
  
  <pre><code>eg: ssh abc.xyz.com gerrit query --patch-sets --format=json commit:12345678
  </code></pre>
  
  <p>The output of this also dumps the below lines:
      type: abcd
      rowCount: integer
      runTimeMilliseconds: 123
      moreChanges: ABCD</p>
  
  <p>I feel this is also another dictionary. </p>
  
  <p>So, is there anyway to pull the output of the ssh command into a python dictionary?</p>
  
  <p>Ref: <a href="https://review.openstack.org/Documentation/cmd-query.html" rel="nofollow noreferrer">https://review.openstack.org/Documentation/cmd-query.html</a></p>