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
Aren't n and pool_size both integers to start with? Won't n // pool_size return an integer?