[libvirt] [PATCH 0/4]typo fix and codes improvement in generator.py