cdname.py is a Python program that names MP3 files and generates M3U playlists by parsing a CDDB or freedb .inf file, usually retrieved with cdda2wav -L. The name can include any or all of: artist name, track title, album name, track number, etc. Many aspects are configurable via command line options. cdname.py is a great addition to any CD ripping/encoding pipeline.