[libvirt] [PATCH python 07/15] generator: Remove use of string.replace and string.find functions