Continue Travis integration, encoding and python 3 compatibility fixes