Update elog-gen.py for python3
Update elog-gen.py for python3

2to3 suggested this change as a better, though not strictly necessary,
way to do things.

Signed-off-by: Matt Spinler <c000c989d08c98662d98f15448f11de169feb92d@us.ibm.com>
Change-Id: I2147d5a6e334f25d5a57250584eb0c77e88526a3

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