from typing import Tuple


def _decode_int(s: str) -> Tuple[int, str]:
    """
    Decode a bencoded int into a python int object.
    """
    i = 1
    token_text = ""
    while True:
        if s[i] == "e":
            break
        token_text += s[i]
        i += 1
    t = int(token_text)
    return t, s[i + 1 :]