EDIT: Hmm, apparently not. I remember this used to work when I was on Windows. Now I'm on Linux and just tried a simple test with the above code and it doesn't work. Like set_keyboard_rate() is completely ignored.