Did you check out the examples on the web. Some of these should help you.
- http://www.blog.pythonlibrary.org/2010/04/22/parsing-id3-tags-from-mp3s-using-python/
[Edit:]
Mutagen tutorial is pretty good, hence did not add more information.
dir() provides most of the details.
For setting album cover to mp3 using mutagen
- How do you embed album art into an MP3 using Python?
Embedding lyrics using mutagen
- http://code.activestate.com/recipes/577138-embed-lyrics-into-mp3-files-using-mutagen-uslt-fra/
An example
from mutagen.mp3 import MP3
from mutagen.easyid3 import EasyID3
import mutagen.id3
filename = 'xxx.mp3'
# Example which shows how to automatically add tags to an MP3 using EasyID3
mp3file = MP3(filename, ID3=EasyID3)
try:
mp3file.add_tags(ID3=EasyID3)
except mutagen.id3.error:
print("has tags")
mp3file['title'] = 'Newly tagged'
mp3file.save()
print(mp3file.pprint())