code: def replace_tab_indent(s, replace="    "):
      
      prefix = get_indent_prefix(s)
      return prefix.replace("\t", replace) + s[len(prefix):]
docs: :param str s: string with tabs
      :param str replace: e.g. 4 spaces
      :rtype: str