Generating Apple Music user token using Python

Does anyone know a method for generating Apple Music User token via python in the terminal, if even possible? I have generated valid developer token but music user token (to add/delete items from the user library) seems rather tricky. Thanks.
I'm on the hunt myself. Please post with any findings and I'll do the same!

I know it's been a while - did either of you figure it out? I've spent all day on this with little luck.

Even attempted a JS version but struggling to authorize and output the music user token for use in python.

Yeah JS doesn't work for me either and they were lazy to document it for some reason, it's extremely unprofessional

Generating Apple Music user token using Python
 
 
Q