def rsplit(_str, seps):
    """
    Splits _str by the first sep in seps that is found from the right side.
    Returns a tuple without the separator.
    """
    for idx, ch in enumerate(reversed(_str)):
        if ch in seps:
            return _str[0:-idx - 1], _str[-idx:]
def rsplit ( _str , seps ) : for idx , ch in enumerate ( reversed ( _str ) ) : if ch in seps : return _str [ 0 : - idx - 1 ] , _str [ - idx : ]
Splits _str by the first sep in seps that is found from the right side.
    Returns a tuple without the separator.