def write_this(func):
        """
        Decorator that writes the bytes to the wire
        """
        @wraps(func)
        def wrapper(self, *args, **kwargs):
            byte_array = func(self, *args, **kwargs)
            self.write_bytes(byte_array)
        return wrapper
def write_this ( func ) : @ wraps ( func ) def wrapper ( self , * args , ** kwargs ) : byte_array = func ( self , * args , ** kwargs ) self . write_bytes ( byte_array ) return wrapper
Decorator that writes the bytes to the wire