https://listenbrainz.org/ is an open source scrobbler, with the advantage that it leverages the musicbrainz database and connects listens to artist and track IDs instead of names, avoiding duplicate confusion. You can keep last.fm and submit to both of you like.