Fix gschema generation with Python 3

https://bugzilla.gnome.org/show_bug.cgi?id=722634