Python3 test compatibility