python: Remove unnecessary library dependencies.

We can remove the deps on libxml2, libvirt and gnulib, by only linking
with utils.o (instead of utils.a).