Added <requires distribution='...'> restriction

The value can be any valid distribution name (e.g. 'RPM'), or '0install' to
force a 0install implementation, not a package implementation. This can be used
to ensure that e.g. MacPorts Python libraries force the selection of MacPorts
Python.
Fixed gobject import on Python 3