def to_native_str(text, encoding=None, errors='strict'):
    """ Return str representation of `text`
    (bytes in Python 2.x and unicode in Python 3.x). """
    if six.PY2:
        return to_bytes(text, encoding, errors)
    else:
        return to_unicode(text, encoding, errors)
 Return str representation of `text`
    (bytes in Python 2.x and unicode in Python 3.x). 
blockchainetl/exporters.py