[libvirt] [PATCH Rust] api_tests.py: update to use Python 3