Accessing Live Viewer Count (Python)

So, I was able to get an app access token yesterday with the POST command from the docs, and I was able to access the viewer count as well of a live channel. But today, with the same code, I am getting several errors.

  1. Trying to get an app access token yields a <Response[200]> instead of a json dictionary object.
    Trying to type the url with the client id and client secret in a browser results in a 404 page not found.
  2. Trying to access the viewer count with the same code, oauth token, and client id yields a <Response[401]>, which I think is the error for when an OAuth token is not valid.

Here is my current code:
API_ENDPOINT = ‘https://api.twitch.tv/helix/streams?user_login=theshiznos

Client_ID = ‘95hkffpc2ng2zww4gttnp17y0ix14n’

oauth = ‘Bearer REMOVED’

head = {

'Client_ID': Client_ID,

'Authorization': oauth

}

r = requests.get(url = API_ENDPOINT, headers = head)

print®