python-fakekbd Fake keyboard events using Linux' /dev/uinput in pure python. You need write access to /dev/uinput. Demo Start ./poc and quickly focus another window