Sorry, I didn't mean use xprop in the application... I meant use it to figure out the way X properties work etc. and create an implementation in Python. Thankfully, since you're using GTK, the GDK wrapper around X makes this really easy (in Python anyway
Add error checking as required.