Return spaces and new line.

    :type level: int or None
    :param level: deep level

    :rtype: unicode
    :return: string with new line and spaces

def pretty_spaces(level):
    """
    Return spaces and new line.

    :type level: int or None
    :param level: deep level

    :rtype: unicode
    :return: string with new line and spaces
    """

    if level is None:
        return u''
    return (os.linesep if level >= 0 else u'') + (u' ' * (INDENT * level))