tools/kvm_stat: fix python3 issues