repaired std::string handling

now python tests should pass