Is it possible to get the live video using the API?

I already have a Python script that can take these screenshots. That isn’t the issue. How can I hook up my Python script with the API?