Change in pysim[master]: construct: use Python's API for int<->bytes conversion