title: How can I improve the quality of this python remote service code?
body: <p>I wrote several small Python scripts to start clusters inside cloud infrastructures with distributed filesystems. Now, I integrated the code into a single command-line application but the code quality is very bad. </p>
  
  <p><a href="http://code.google.com/p/diffuser/source/browse/trunk/diffuser.py" rel="nofollow">http://code.google.com/p/diffuser/source/browse/trunk/diffuser.py</a></p>
  
  <p>The application needs to send lots of commands via SSH with paramiko. Each command that is send via SSH needs three lines of code:</p>
  
  <pre><code>stdin, stdout, stderr = client.exec_command("&lt;command&gt;")
  print stdout.readlines()
  print stderr.readlines()
  </code></pre>
  
  <p>How can I improve the code quality? </p>