'In general, a much better way to add options should just be
to add them to the .options dictionary.'

def appendRawOption(self, code, val=None, length=None):

    self._raw_options += chr(code)
    if (length is None):
        if (val is None):
            return
        length = len(val)
    self._raw_options += chr(length)
    self._raw_options += val
