Some changes for PSoC and Python