b8770c3 python: Add pypath_converter

Authored and Committed by abawer 5 years ago
    python: Add pypath_converter
    
    In Python 3 we would like to handle paths as either unicode strings
    or bytes. For this purpose we have a c-API called PyUnicode_FSConverter.
    In this patch the missing API is implemented for Py2 based on Py3 [1]
    and a unified no-cleanup behavior is enforced for Py3 path conversion as well.
    
    [1] https://github.com/python/cpython/blob/master/Objects/unicodeobject.c#L3818
    
        
file modified
+54 -0