- port hidwrap to Python 3