Fixed support for Python3 pytest