How to find if a stream is live using Python?

I’m not a Python dev, but it looks like you’re sending the Client-ID in the request body. You need to send it as a header.