(libinput.py) new function 'safeinput', more general and friendlier syntax