improving python3 tests