import re


def parse_id_name(one_string):
    """Parses b"500(guest)" (bytes) and returns (500, "guest") (str)"""
    mtch = re.match(br"^([0-9]*)\(([^)]*)\)$", one_string)
    if mtch:
        return mtch.group(1), mtch.group(2).decode("utf-8")
    return -1, ""