How PyExifTool works with ExifTool batch mode
masterPyExifTool uses the exiftool.ExifTool class to communicate with the exiftool command-line application.
Instead of launching a new process for every single query, the library runs the command-line tool in batch mode (using the -stay_open option). This allows a single instance of the exiftool process to be launched once and reused for many subsequent commands or metadata extractions, making it significantly more efficient for processing multiple files.