8969817 python: Use PyBytes converter for init_resource API

2 files Authored by abawer 5 years ago, Committed by nsoffer 5 years ago,
    python: Use PyBytes converter for init_resource API
    
    This API was deprecated by write_resource but we want the
    lockspace/resource name as bytes change to be uniform so we
    modify it as well for sake of old use cases.
    
    Also added stub test for arguments parsing.
    
    Implications:
    
    - Py2 : no difference
    - Py3 : if used, only accept bytes for lockspace/resource name.
    
        
file modified
+16 -15
file modified
+9 -0