Try to make gobject.py work with both pythons

This change was suggested on the fedora test list, and has been
reported to work.