'The main COM entry-point for QueryInterface.
This checks the _com_interfaces_ attribute and if the interface is not specified
there, it calls the derived helper _query_interface_'

def _QueryInterface_(self, iid):

    if (iid in self._com_interfaces_):
        return 1
    return self._query_interface_(iid)
