def parseHeader(self):
    headerfmt = '>32shhIIIIII4s4sIIH'
    headerlen = calcsize(headerfmt)
    fields = ['name', 'attributes', 'version', 'created', 'modified', 'backup', 'modnum', 'appInfoId', 'sortInfoID', 'type', 'creator', 'uniqueIDseed', 'nextRecordListID', 'number of records']
    results = zip(fields, unpack(headerfmt, self.contents[self.offset:(self.offset + headerlen)]))
    self.offset += headerlen
    resultsDict = utils.toDict(results)
    return resultsDict
def parseHeader(self):
    headerfmt = '>32shhIIIIII4s4sIIH'
    headerlen = calcsize(headerfmt)
    fields = ['name', 'attributes', 'version', 'created', 'modified', 'backup', 'modnum', 'appInfoId', 'sortInfoID', 'type', 'creator', 'uniqueIDseed', 'nextRecordListID', 'number of records']
    results = zip(fields, unpack(headerfmt, self.contents[self.offset:(self.offset + headerlen)]))
    self.offset += headerlen
    resultsDict = utils.toDict(results)
    return resultsDict