def _maybe_int(s):
    """
    Convert any number encoded as string to int

    >>> _maybe_int("abc")
    'abc'
    >>> _maybe_int("11")
    11
    >>> _maybe_int("0xa")
    10
    >>> _maybe_int("0xz")
    '0xz'
    """
    try:
        return int(s, 0)
    except ValueError:
        return s