Py3k tests fix