Minor changes for ST3

Got it to format in ST3, mostly the StringIO changes are what affected it.  Should probably be refactored but just needed to get the formatting working.