Improved Version of the Last.fm to iTunes Playcount script found at https://code.google.com/p/lastfm2itunes-mac/