test: fix python3 support