Mutagen has a wrapper that detects the format and automatically reads (and writes) the correct metadata tags.

    mutagen.File(filename, easy=True)

Perhaps that would be better to use here since it's more flexible? If you do use it, remember to update the mutagen import.