python 3 compat
more py3 compat and cov 3 compat