title: Python renaming media files
body: <p>I am using ID3 library to rename my files to the data tag containing the song title to take out the numbers and other crap there is in the file name. Haven't used python in a while. Whoever I am pretty sure this is the code, but i get no output nor my files change name.</p>
  
  <pre><code>def rename():
          location = "/media/martinstone/6EA41336A412FFEF/Users/Martin7/Desktop/Music/"
          for files in os.walk(location):
                  for mfiles in files[2]:
                          if ".mp3" in mfiles:
                                  path = location + mfiles
                                  id3info = ID3(path)
                                  os.rename(path, id3info['TITLE'])
                                  print id3info['TITLE']
  rename()
  </code></pre>