fix Python 3 compatibility in Spotify plugin