title: Auth returning 401
body: <p>I'm trying to retrieve data from my code below.
  The token is correct, and when I'm trying by ThunderClient, I receive data.
  But when running the code below, I receive 401 - Unauthorized, Authentication Required.</p>
  <p>As I'm still learning Python, I cannot see why it is not working.</p>
  <p>Could someone give me an idea on how to solve it?
  Thanks a lot!</p>
  <pre><code>import requests
  import json 
  import urllib.request
  import os.path
  import os
  
  bearer_token=&quot;908yt&quot;
  
  headersAuth = {&quot;Authorization&quot;: &quot;Bearer {}&quot;.format(bearer_token)}
  
  
  
  response = requests.get(&quot;https://mywebsiteexaple.com/api/&quot;, headers=headersAuth)
  
  
  
  payload=response.json()
  print(payload)
  </code></pre>