Scrobblescraper is a project mainly written in ..., it's free.
A plugin for the Clementine music player that syncs last.fm data in the opposite direction you might expect.
Soon I will sync my dang last.fm data to my phone.