So sometimes when an unexpected power failure happens with my pi and it has a USB flash inserted into it, it renames my flash. For instance, the flash is named 'FRED' using the Windows utility when you right click a drive and assign it a name. When being used in the pi, if power fails then on reboot when I navigate to the drive using File Manager the drive is now shown as 'FRED_' with an underscore attached to it. Putting this same drive back into a windows machine it shows up as just 'FRED'. The issue is that my Python code cannot find 'FRED' anymore and my script crashes.