I found some python code for OSX notifications

https://gist.github.com/lukaszb/5001170#file-notify-py