import textwrap


def normtext(block):
  """
  makes a block of text have no unnecessary indentation,
  begin with a non-newline,
  and end with a newline
  """
  return textwrap.dedent(block).strip('\n') + '\n'