Generate playlists using python