Automate mouse and keyboard event using Pytautogui.
Ubuntu linux
sudo apt-get install scrot, sudo pip install opencv-python. These requirements helps the script to locate the element in the screen.
Use command "xhost +" when you get error - "No protocol specified". Use your own screen shot and test.
I have used youtube bell icon screen shot to test.