pytest crash on python 3.x