Fix test harness on python3