Won't `getattr(libvirtd_service, action)()` work?  eval() is dangerous.