title: How to use awscli inside python script?
body: <p>I'm using aws ec2 service with awscli. Now I want to put all the commands I type in the console into a python script. I see that if I write <code>import awscli</code> inside a python script it works fine but I don't understand how to use it inside the script. For instance how do I execute the commands <code>aws ec2 run-instances &lt;arguments&gt;</code> inside the python script after <code>import awscli</code>? Just to make it clear, I'm not looking for a solution like <code>os.system('aws ec2 run-instances &lt;arguments&gt;')</code>, I'm looking for something like</p>
  
  <pre><code>import awscli
  awscli.ec2_run-instances(&lt;arguments&gt;)
  </code></pre>