When users use activities, they earn badges. When those are awarded, it makes sense to notify the user.
Right now, individual activities have to have their own code to notify the user. The badge-awarding code could try to do this for the activities, but how to handle all the different programming environments. Do we interface with pygame? Or Glib? Or. wat?
In order to get around all the different peculiarities, you could try to use something in the OS to do notifications directly to the desktop environment. One way to do this is libnotify. That's what fedmsg-notify uses.
Here's an example. Things might be changing with GTK3+, though. Try it out! https://wiki.archlinux.org/index.php/Libnotify#Python