Lets say you have your movie collection. You want to create a folder for each movie and rename it to respective movie name.
Running this script will trake care of it
python create_folder_for_every_file.py
This script also moves any file with same name into the corresponding folder. In the scenario given above, I needed to move the subtitle file along with the movie.