def fixspacing(s):
    """ Try to make the output prettier by inserting blank lines
        in random places.
    """
    result = []
    indent = -1
    for line in s.splitlines():
        line = line.rstrip()
        if not line:
            continue
        indent, previndent = len(line) - len(line.lstrip()), indent
        if indent <= previndent and indent < 8:
            if indent < previndent or not indent:
                result.append('')
        result.append(line)
    result.append('')
    return '\n'.join(result)
