Print out via pretty print

def output(data, **kwargs):  # pylint: disable=unused-argument
    '''
    Print out via pretty print
    '''
    if isinstance(data, Exception):
        data = six.text_type(data)
    if 'output_indent' in __opts__ and __opts__['output_indent'] >= 0:
        return pprint.pformat(data, indent=__opts__['output_indent'])
    return pprint.pformat(data)