python: simplify complicated conditional assignment
python: simplify complicated conditional assignment

VenkatDatta/libvirt,VenkatDatta/libvirt,elmarco/libvirt,nertpinx/libvirt,zippy2/libvirt,datto/libvirt,elmarco/libvirt,taget/libvirt,libvirt/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,agx/libvirt,agx/libvirt,fabianfreyer/libvirt,datto/libvirt,taget/libvirt,libvirt/libvirt,rlaager/libvirt,crobinso/libvirt,elmarco/libvirt,jfehlig/libvirt,jardasgit/libvirt,cbosdo/libvirt,rlaager/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,datto/libvirt,rlaager/libvirt,cbosdo/libvirt,shugaoye/libvirt,olafhering/libvirt,eskultety/libvirt,elmarco/libvirt,agx/libvirt,taget/libvirt,crobinso/libvirt,datto/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,olafhering/libvirt,andreabolognani/libvirt,nertpinx/libvirt,jardasgit/libvirt,libvirt/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,eskultety/libvirt,agx/libvirt,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,olafhering/libvirt,shugaoye/libvirt,zippy2/libvirt,crobinso/libvirt,zippy2/libvirt,nertpinx/libvirt,zippy2/libvirt,jfehlig/libvirt,taget/libvirt,crobinso/libvirt,andreabolognani/libvirt,jfehlig/libvirt,jfehlig/libvirt,rlaager/libvirt,shugaoye/libvirt,eskultety/libvirt,andreabolognani/libvirt,eskultety/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,eskultety/libvirt,shugaoye/libvirt,taget/libvirt,olafhering/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,nertpinx/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,libvirt/libvirt,fabianfreyer/libvirt,rlaager/libvirt,jardasgit/libvirt