:param str s: multi-line string with tabs
    :param str replace: e.g. 4 spaces
    :rtype: str

def replace_tab_indents(s, replace="    "):
    """
    :param str s: multi-line string with tabs
    :param str replace: e.g. 4 spaces
    :rtype: str
    """
    lines = s.splitlines(True)
    return "".join([replace_tab_indent(l, replace) for l in lines])