@staticmethod
def from_blocks(blocks, strip=True):
    "\n        Converts a list containing blocks of data into a string representation of a hex number.\n        Then converts that hex number to a bytes object, striping right trailing b'\x00' characters\n        if strip is True.\n\n        :param blocks: list\n        :param strip: bool\n        :return: bytes\n        "
    out = ''
    for block in blocks:
        for item in block:
            out = out + str(item)
    return bytes.fromhex(out).rstrip(b'\x00') if strip else bytes.fromhex(out)
