* fixes in tests for python 3