Switched to classic X11 SendEvent for the send_key functions.
Added a bug to fix to the TODO list