python3 compat for tests