title: Returning a List type of variable from SSH in python
body: <p>I am working on a project, which sends an image with to an Amazaon EC2 Instance via SCP and process the image via executing a python script inside the instance via SSH. The script has a return value in list type. How can i keep this value as a variable via Python in Client-Side. Sending the images via SCP and SSH is also done in a python script in Client-Side.</p>
  <pre><code>os.system(f'cmd /c &quot;ssh -i pem-file.pem {instance} ./processing {image}&quot;')
  </code></pre>
  <p>Thanks in Advance !</p>