Renaming the multiple files is a difficult task .It is simply achieved using the rename() and listdir() methods in os module.You can also find a code here.