If something strange happens on your server or in your python-app you may want to send a push notification. I chose pushover for this.
Create an app here: https://pushover.net/apps/build.
Your usertoken is on your dashboard mainpage in pushover.
The script needs requests.
This can now be called for example like this:
I use this on error in cronjobs for private projects.