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