def b2hex(b):
    """This function replace the bytes.hex() function provided in Python3.5 and later

    .. note::

       Micropython (Python 3.4) doesn't support bytes.hex().

    Args:
       b (bytes): the byte chain to convert to hexadecimal representation

    Returns:
       str : The string representation of the converted hex

    Example:
    
    >>> print b2hex(b'123')
    '313233'
    """
    return "".join(["%02x"%_ for _ in b])