def serialize(self):
    r = b''
    r += struct.pack('<?', self.announce)
    r += struct.pack('<Q', self.version)
    return r
def serialize(self):
    r = b
    r += struct.pack('<?', self.announce)
    r += struct.pack('<Q', self.version)
    return r