fixed QString to Python string conversion