Using libguestfs from Python

Create handle — Inspect — Modify — Shutdown

g.shutdown ()

g.close ()