def deserialize(self, f):
    self.announce = struct.unpack('<?', f.read(1))[0]
    self.version = struct.unpack('<Q', f.read(8))[0]
def deserialize(self, f):
    self.announce = struct.unpack('<?', f.read(1))[0]
    self.version = struct.unpack('<Q', f.read(8))[0]