def tsplit(string, delimiters):
    delimiters = tuple(delimiters)
    if len(delimiters) < 1:
        return [string,]
    final_delimiter = delimiters[0]
    for i in delimiters[1:]:
        string = string.replace(i, final_delimiter)
    return string.split(final_delimiter)
Behaves str.split but supports tuples of delimiters.
dataset/ETHPy150Open kennethreitz/clint/clint/utils.py/tsplit