code: def paths_equal(self, lhs, rhs):
          
  
          if lhs is rhs:
              return True
          if lhs.host is not None and rhs.host is not None and\
             lhs.host != rhs.host:
              return False
          # need to make sure this stays in sync with CIMInstanceName.__cmp__()
          return not (pywbem.cmpname(rhs.classname, lhs.classname) or
                      cmp(rhs.keybindings, lhs.keybindings) or
                      pywbem.cmpname(rhs.namespace, lhs.namespace))
docs: If one object path doesn't inlcude a host, don't include the hosts
          in the comparison