title: How to run a command interactively using python?
body: <p>I want to run "aws configure" and pass the access key and secret key values programmatically using python. </p>
  
  <p>I tried</p>
  
  <pre><code>list = ['aaaa', 'bbb']
  subprocess.Popen(['aws', 'configure']+list)
  </code></pre>
  
  <p>did not work.</p>