improve compatibility for python 3

- correct .travis.yml
- make TransformerIterator iterable
- remove comparison "None > 0"
- use six.text_type instead of unicode
- use six.moves.input instead of raw_input
- use six.moves.reduce
- use operator module instead of lambda function
- integer conversion
- convert the pretrained test data
- remove some unused import
I would be in favor or using explicit integer division with `//`, rather than casting to int afterward.