python: Fix char list packing in Python3