add isinstance check to ObjPath equals operator

ObjPath class __eq__ and __ne__ operators were not checking that instance of the ObjPath class was passed to them