def atoi(text):
    """
    helper for natural_keys
    attempt to convert text to int, or return text
    :param text: arbitrary text
    :return: int if succeeded to convert, the input text as is otherwise
    """
    return int(text) if text.isdigit() else text