I think this is the wrong fix - 'GIFTI_ENDING_LITTLE' *is* the gifti string.  I think the fix is to change "gifti_endian_codes.giistring[self.endian]" in gifti.py to "gifti_endian_codes.specs[self.endian]".