def bytes_to_hex(bs):
    """
    Convert a byte string to an hex string.

    Parameters
    ----------
    bs: bytes
       byte string

    Returns
    -------
        str: hex string
    """
    return ''.join('%02x' % i for i in bs)