def bytes_to_int(s):
    """Return converted bytestring to integer.

  Args:
    s: str of bytes
  Returns:
    int: numeric interpretation of binary string `s`
  """
    return int(s.encode('hex'), 16)
