Updates to avoid PyGIDeprecationWarning