Cope with more PyGObject API changes

Based on patch in http://twistedmatrix.com/trac/ticket/6369