Register global keyboard shortcut for X11, python3 version.