changed str() to unicode()