def unindent_string(docstring):
    lines = docstring.expandtabs().splitlines()
    icount = indentcount_lines(lines)
    if icount == 0:
        return docstring
    return '\n'.join([line[icount:] for line in lines])
>>> text = '''
dataset/ETHPy150Open scipy/scipy/scipy/misc/doccer.py/unindent_string--crossover with--dataset/ETHPy150Open limodou/par/test/test_md.py/test_dl_1