[libvirt] [python PATCH] fix crash introduced by commit 1d39dbaf