Format the output - python
<p>I have this code here</p>

<pre><code>import subprocess
from time import strftime       # Load just the strftime Module from Time

f = open('check_'+strftime("%Y-%m-%d")+'.log', 'w')
for server in open('check.txt'):
    f.write(server.strip() + "\n")
    subprocess.Popen(['plink', server.strip(), 'df','-k'],stdout=f)
</code></pre>

<p>What I would like to have is the output so it shows:</p>

<blockquote>
  <p>Server Name</p>
  
  <p>Output</p>
  
  <p>Server Name </p>
  
  <p>Output</p>
</blockquote>

<p>Currently it shows:</p>

<blockquote>
  <p>server name</p>
  
  <p>server name</p>
  
  <p>output</p>
  
  <p>output</p>
</blockquote>

<p>Thanks in advance</p>
