gateone.py:  Just a few minor Python 3 fixes.
onoff.py:  A couple of Python 3 fixes.