Set stream title and game in Python

So, I need to act like this:

url = "https://api.twitch.tv/kraken/oauth2/authorize"
params = {"Client-ID" : ""+ config.CLIENT_ID +"", "scope" : "channel_editor"}
config.resp = requests.get(url=url, headers=params)

Before setting the status as I was doing before.
Am I right?