code: def pretty_spaces(level):
      
  
      if level is None:
          return u''
      return (os.linesep if level >= 0 else u'') + (u' ' * (INDENT * level))
docs: Return spaces and new line.
  
      :type level: int or None
      :param level: deep level
  
      :rtype: unicode
      :return: string with new line and spaces