<p>Is there an easy way to rename a group of files already contained in a directory, using Python?</p>

<p><strong>Example:</strong>   I have a directory full of *.doc files and I want to rename them in a consistent way.</p>

<blockquote>
  <p>X.doc -> "new(X).doc"</p>
  
  <p>Y.doc -> "new(Y).doc"</p>
</blockquote>

Try:
http://www.mattweber.org/2007/03/04/python-script-renamepy/
I like to have my music, movie, and
  picture files named a certain way.
  When I download files from the
  internet, they usually don’t follow my
  naming convention. I found myself
  manually renaming each file to fit my
  style. This got old realy fast, so I
  decided to write a program to do it
  for me.
This program can convert the filename
  to all lowercase, replace strings in
  the filename with whatever you want,
  and trim any number of characters from
  the front or back of the filename.
The program's source code is also available.