def strip_suffixes(s, suffixes):
    """
    Helper function to remove suffixes from given string.

    At most, a single suffix is removed to avoid removing portions
    of the string that were not originally at its end.

    :param str s: String to operate on
    :param iter<str> tokens: Iterable of suffix strings
    :rtype: str
    :return: String without any of the given suffixes
    """
    for suffix in suffixes:
        if s.endswith(suffix):
            s = s[: -len(suffix)]
            break
    return s