def _replacer(x) ->str:
    """
    Replace a number with its hexadecimal representation. Used to tag
    temporary variables with their calling scope's id.
    """
    try:
        hexin = ord(x)
    except TypeError:
        hexin = x
    return hex(hexin)
