Change in pysim[master]: transport/serial: fix for Python 3