Add check for params, nparams being a dictionary
Add check for params, nparams being a dictionary

If PyDict_Check fails, we should force an error rather than
blindly continuing on.

Signed-off-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>
Reviewed-by: Pavel Hrdina <d4772d05997b8abf035041e3b4f4996380ea7e7a@redhat.com>

libvirt/libvirt-python,libvirt/libvirt-python,libvirt/libvirt-python