Here's a new script: Goes through all the folders for which you call it and finds and organizes JPG images.
The need came when i downloaded all my Google Photos and wanted to organize them in year and month folders.
Basically the script reads the EXIF data in the images and moves them into photos/<year>/<month>. If it cannot read the metadata, or fails parsing the date, or another weird reason, it skips that image and moves on.
Code (and instructions) available at https://github.com/nocivus/image_sorter