def METHOD_NAME(line, max_length=79):
    new_lines = []
    new_line = []
    len_line = 0
    indent = len(line) - len(line.lstrip())
    line = line.replace('\"', '\'')
    for word in line.split(' '):
        if len_line + len(word) + 1 <= max_length:
            new_line.append(word)
            len_line += len(word) + 1
        else:
            new_lines.append(' '.join(new_line))
            new_line = [' ' * (indent + 4) + word]
            len_line = len(new_line[0])
    new_lines.append(' '.join(new_line))
    return '\n'.join(new_lines)