title: stty: standard input: Invalid argument when using pdsh or ssh
body: <p>I want to run a simple script from remote machine. The script contains the following:</p>
  
  <pre><code>#!/usr/bin/python
  
  import os
  print str(os.popen('stty size', 'r').read())
  </code></pre>
  
  <p>If I run it from local machine I get fine output, something like <code>36 138</code>. If I try to run it from another machine, I get <code>&lt;ip&gt;: stty: standard input: Invalid argument</code> (using ssh ot pdsh).</p>
  
  <p>The problem is I can't change the script that is using the stty command. This is a common script, which I write wrapper to.
  Suggestions ?</p>