def int16_conv(matchobj):
    """
    `matchobj`: re.match expression.
    Returns a formula that computes the 16 bit integer from the
    two bytes in the expression.
    """
    formula = '({}*256+{})'.format(*matchobj.groups())
    return formula