code: def indent(s, spaces=4):
      
      new = re.sub('(\n+)', '\\1%s' % (' ' * spaces), s)
      return (' ' * spaces) + new.strip()
docs: Inserts `spaces` after each string of new lines in `s`
      and before the start of the string.