code: def indent(s, n_spaces=2, initial=True):
      
      i = ' '*n_spaces
      t = s.replace('\n', '\n%s' % i)
      if initial:
          t = i + t
      return t
docs: Indent all new lines
      Args:
          n_spaces: number of spaces to use for indentation
          initial: whether or not to start with an indent