import textwrap


def _wrapHeader(text):
    """Wraps a header. If it's more than 70 characters long, adds
       spaces to the next lines so it's properly indented."""
    lines = textwrap.wrap(text.strip(), width=70, subsequent_indent="    ")
    lines.append("") # to get final \n
    return "\n".join(lines)