code: def leading_whitespace(self, line):  # type: (str) -> str
          
          string = ""
          for char in line:
              if char in " \t":
                  string += char
                  continue
              else:
                  return string
          return string
docs: For preserving indents
          :param line:
          :return: