If you continually have "Something went wrong while inserting : HTTP Error 401: Apple WebObjects" make sure you check that the rest of the header data in insert-songs.py matches what you get from your recorded session (I had to change a few more than what's specified in the readme).
Looks like apple has update their api, does it still work for you guys?
When adding a song I am seeing this:
Here are my headers:
Looks like there is a newer version of the api out there already?