One of the problems with MP3 files is that I tend to move them around *and* modify their tags. This often leads to my having two MP3 files with the same name, and not being sure whether they are the same song with different tags, or two different versions of the song (for example, a studio version and a live version).
I started hacking muse, a program to back up and restore music libraries to a network attached file server, writing in python to allow it to be run on either Windows or Linux. When I looked for a python library to let me compare the audio portions of two MP3 files, I found pydub on GitHub. Unfortunately, pydub extracts the audio by running an external program, ffmpeg. Desiring a portable solution, I decided to write my own library to allow me to compare the audio in two MP3 files.
The muse library defines the Mp3File object. You can compare two Mp3Files using the compareAudio method. Each file is only processed once, and an MD5 checksum stored in the object to improve the speed of future comparison operations.
You can find the latest version of muse on github: https://github.com/jimbelton/muse