Support null ptr in python bindings for ro strings