Fix python 3 compatibility, add python 3.4 support
Add travis CI config