title: Python request with authentication (access_token)
body: <p>I am trying to get an API query into python. The command line</p>
  <pre><code>curl --header &quot;Authorization:access_token myToken&quot; https://website.example/id
  </code></pre>
  <p>gives some JSON output. <code>myToken</code> is a hexadecimal variable that remains constant throughout. I would like to make this call from python so that I can loop through different ids and analyze the output. Before authentication was needed I have done that with <code>urllib2</code>. I have also taken a look at the <code>requests</code> module but couldn't figure out how to do that.</p>