Python script to sort photos based on EXIF data