Fix (some) DeprecationWarnings from PyGObject