title: Run Putty command from python
body: <p>I currently have a .sh file from which I run a command called <code>metl</code>.
  metl is a python package which helps with the extraction, transformation and loading of data from almost any source.</p>
  
  <p>The normal procedure I need in the putty console and works fine is the following:</p>
  
  <pre><code>metl -m migration.pickle1 
       -t migration.pickle2 
       -s filename.csv 
       config_file.yml
  </code></pre>
  
  <p>The procedure that I run from my .sh file, and also works properly is the following:</p>
  
  <pre><code>metl -m migrationfiles/"${migbefore}" \
      -t migrationfiles/"${migafter}" \
      -s "${y}" \
      config_file.yml
  </code></pre>
  
  <p>Sorry I was not clear enough before, in general I want to run a Python script from the PuTTY console, and from inside this Python script I need to run a PuTTY command, which is the one I mentioned before <code>(metl -m migration.pickle1....)</code></p>
  
  <p>So what I am trying to run is this:</p>
  
  <pre><code>import os
  
  os.system("metl -m " + path + ""\"" + migbefore + "-t " + path + ""\"" + migafter + "-s " + csvfile + " " + directory + ""\"" + config_file.yml)
  </code></pre>