[libvirt] [PATCH v2] move format.py into src, cleanup module import code