Add better error handling.

OK, doesn't get much better than this.  Full error messaging from
python.

Signed-off-by: Ian Main <imain@redhat.com>