Fix building Python bindings with pygobject >= 3.7.91.