Initial support of mysql as a check protocol
fix tests
some basic unit tests
fix python 3.x compat