code: def _complete_last_byte(self, packet):
          
          padded_size = self.get_size()
          padding_bytes = padded_size - len(packet)
          if padding_bytes > 0:
              packet += Pad(padding_bytes).pack()
          return packet
docs: Pad until the packet length is a multiple of 8 (bytes).