[Libguestfs] [PATCH nbdkit v2 05/10] python: Share common code in boolean callbacks.