ChannelLogger: Fix Python 2 compatibility.
ChannelLogger: Fix Python 2 compatibility (again).
ChannelLogger: Fix Python 2 compatibility (again).