uinput: Python 3 fix.