repaired std::string handling
Merge pull request #682 from vpisarev/python_str_fix

repaired std::string handling