def METHOD_NAME(library, songs):
    for song in songs:
        if not song._needs_write:
            continue
        try:
            song._song.write()
        except AudioFileError as e:
            print_w("Couldn't save song %s (%s)" % (song("~filename"), e))
    _inform_library_of_changed(library, songs)