def parseEXTHHeader(self):
    headerfmt = '>III'
    headerlen = calcsize(headerfmt)
    fields = ['identifier', 'header length', 'record Count']
    results = zip(fields, unpack(headerfmt, self.contents[self.offset:(self.offset + headerlen)]))
    resultsDict = utils.toDict(results)
    self.offset += headerlen
    resultsDict['records'] = {}
    for record in range(resultsDict['record Count']):
        (recordType, recordLen) = unpack('>II', self.contents[self.offset:(self.offset + 8)])
        recordData = self.contents[(self.offset + 8):(self.offset + recordLen)]
        resultsDict['records'][recordType] = recordData
        self.offset += recordLen
    return resultsDict
def parseEXTHHeader(self):
    headerfmt = '>III'
    headerlen = calcsize(headerfmt)
    fields = ['identifier', 'header length', 'record Count']
    results = zip(fields, unpack(headerfmt, self.contents[self.offset:(self.offset + headerlen)]))
    resultsDict = utils.toDict(results)
    self.offset += headerlen
    resultsDict['records'] = {}
    for record in range(resultsDict['record Count']):
        (recordType, recordLen) = unpack('>II', self.contents[self.offset:(self.offset + 8)])
        recordData = self.contents[(self.offset + 8):(self.offset + recordLen)]
        resultsDict['records'][recordType] = recordData
        self.offset += recordLen
    return resultsDict