fix some code that is non-python2 compatible
fix some code that is non-python2 compatible

gojomo/gensim,robotcator/gensim,piskvorky/gensim,ELind77/gensim,mattilyra/gensim,summanlp/gensim,robotcator/gensim,mattilyra/gensim,markroxor/gensim,piskvorky/gensim,quole/gensim,quole/gensim,markroxor/gensim,summanlp/gensim,gojomo/gensim,RaRe-Technologies/gensim,summanlp/gensim,mattilyra/gensim,RaRe-Technologies/gensim,gojomo/gensim,robotcator/gensim,markroxor/gensim,macks22/gensim,ELind77/gensim,piskvorky/gensim,gojomo/gensim,macks22/gensim,RaRe-Technologies/gensim,quole/gensim,ELind77/gensim,RaRe-Technologies/gensim,macks22/gensim