Fix corrects the parsing of JSON output in Python 3 environment by using to_text API. Fixes: #26489 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>