I have a class Packet is there a way to convert an object of it to an bytearray?
from abc import abstractmethod class Packet: @abstractmethod def __i