add tests
open file in binary mode
shorten long line
python3 fixes
add tox.ini, .travis.yml
python3 fixes
python3 fixes