init tests with mysql_pub test
enable travis ci
fix py2 compatiblity