import os ## go to file folder os.chdir("file_folder") ## change its name os.rename("old_name", "new_name")