def create_playlists_from_result(self, playlists): for _playlist in playlists: playlist = Playlist(_playlist['PlaylistID']) playlist.title = u'%s' % (_playlist['Name']) yield playlist