peltool: Fix Python C Extension for UD parsing
peltool: Fix Python C Extension for UD parsing

This fixes some issues with reference counting which could possibly
lead to memory leaks and unwanted behaviours.

Only accepts valid data from python module (non-empty object, array and
string) or else to return the default hex dump.

Signed-off-by: Harisuddin Mohamed Isa <d8aeb45f758103e2ef97301d25493eb8a54a9484@gmail.com>
Change-Id: I13d06247533018709b93e5d7887453e652132956

openbmc/phosphor-logging,openbmc/phosphor-logging,openbmc/phosphor-logging,openbmc/phosphor-logging