Made C string->Python string conversion work with Python 3