'Return the first value of a header, or None
if not present.'

def get_header(self, header):

    for index in xrange(len(self.addheaders)):
        if (self.addheaders[index][0] == header):
            return self.addheaders[index][1]
    return None
