I have cross-checked syntax and this same perform_auth() runs perfectly with a 200 response on Jupyter Notebook
perform_auth()
200
client_id = os.envir