fixed Python 3 compat issue
skip tests for certain versions of Python