I have a folder(eg. Folder 1) with files of ".tbw" extension and I wanted to create a new folder(eg. Folder 2) which contains the same files as of previous folder(Folder 1) but I want that the files that are copied from old folder to new folder should be changed with their extension i.e., all the files in the new folder(Folder 2) should have changed their extension to ".xml". And I want to automate this process using Python or any other programming/scripting language.
Basically I want to change the extension of files from ".tbw" to ".xml" using Python along with those I mentioned above.