This python script I wrote has been made to organize (thousands of) photos in the same directory into different folders, depending on year, and month. This can be useful if you use (or have used) the OneDrive syncing app, where all the photos will be synced into one big folder called the 'Camera Roll'.
Feel free to modify this script to your own purposes. Warning: This script isn't perfect. It can lead to errors, conflicts, it can malfunction. If something goes wrong, I am not responsible, though your data should be 100% safe, as nothing gets deleted, only moved.
The following python packages are required to run this script: ffmpeg-python