THIS SCRIPT WILL NOT WORK AS IS

If you actually want to use this you need to swap in your own MPD parser + include pywidevine along with a working device key.