Xpad does what I want and it's a GTK+ program!
The code don't appear to be very complex, but it's written in C.
Maybe I should learn how this program works first and then if I want learn some python..