Fix write method of file requires byte-like object in segment_wiki (#1750)
Fix write method of file requires byte-like object in segment_wiki (#1750)

* fix write method requires byte-like object, not str

sys.stdout requires str while file with the flags 'wb' requires bytes

* split 2 cases

* remove empty line; fix build

RaRe-Technologies/gensim,markroxor/gensim,markroxor/gensim,RaRe-Technologies/gensim,gojomo/gensim,mattilyra/gensim,markroxor/gensim,RaRe-Technologies/gensim,piskvorky/gensim,piskvorky/gensim,gojomo/gensim,mattilyra/gensim,mattilyra/gensim,piskvorky/gensim,gojomo/gensim,gojomo/gensim,RaRe-Technologies/gensim