Thank you, kind sir, for the very fun project!!
In return, I offer you and everyone else my version of your original scripts.
Also, an explanation of what they are and what they do.
The Samba file share from my file server is at IP address 192.168.1.11 and is named "Pictures". It is configured in the system config file /etc/fstab to allow guest access with no username/password required.
The LXDE window manager in Linux manages the X-windows GUI startup. The autostart file for LXDE is included. It calls a BASH shell script to start the Python scripts.
The three Python scripts are located in the directory /home/pi/PIctureFrame/. They are:
autofan.py - manages the fans according to Pi chip temperature
button.py - manages the four GPIO input buttons
startupfile.py - starts the Chromium browser running
BlueIris's UI3 web page and Shotwell photo slideshow